Mod Question Repository... Questions come in, answers go out - Page 2

Mod Question Repository... Questions come in, answers go out

Resources to get you going on your new project, or to help you over some emergent problems during your development cycle.

Moderator: Moderators

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Snipawolf wrote:We can fire weapons using scripts?
Not yet, needs rework. Your firepoint needs to have two vertices pointing in the direction you want to fire.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

So close, I am so close, oh well, by the time I get to "polishing" with dynamic blood, it'll be fixed.. Right? Righhhht... Plleeaaassee


Edit: Would my idea work though (if it was reworked?)?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I have asked Yeha to change it so you can emit weapons from empty objects using the object's rotation just like explosions, and to use a new modifier for detonations (4096) roughly a week ago... I'm sure he'll do it in some time (if he don't then I'll keep nagging 8)).
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

I forgot, which texture does alpha go in?

1st or 2nd?

Edit: As soon as this question is answered, I'll start on the script for my former light tank, now an MBT..
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

2nd because 1st is TC and TC was here first.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

I meant to ask for team color not alpha, but I found out while diddling around yesterday, thanks anyway.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

You do know how to get most of your questions answered, do you?
http://taspring.clan-sy.com/phpbb/search.php :P
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

I hate that thing, the more words I put in the search bar the more results I find..

Dang backwards search bar..
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

New Question related to an older question..

Would it be possible to have two or three sprays of 10-15 bullets then reload?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Yes.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Good, good.. Whoever says the spring engine can't be manipulated is a fool.. A fool I tell you..
User avatar
Alex_Murdock
Posts: 10
Joined: 24 Oct 2006, 19:08

Post by Alex_Murdock »

Is there a way to program multiple voice responses to units like instead of hearing the same 1 voice over and over you can hear multiple voices at random of clicking on the unit over and over or giving it commands (Ala command and conquer/starcraft)
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Use play-sound("sample", volume) in StartMove() or StopMove() in the unit script. Select sound can't have multiple sounds.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Dang, that sux..

I would have had stuff like :

"Sir, yes, sir!?"
"Let's kill those fucken freaks!"
"Another day, another planet..."
"We're superior, we won't lose!"


Etc, etc.

We can have those under attack things, right? Can we have different ones?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Yes there are functions which get called when under attack. HitByWeapon() for instance.

Now I've got a question... it's like this:

I've got a unit with a burst weapon which fires twice each burst (dual rocket launcher). So the question is, is there any other function which gets called each time a weapon fires a burst shot? Both FireWeaponX and EndBurstX get only called at the end of a burst which is useless.

The only workaround I can think of is abusing RockUnit, because it's the only function which gets called for any shot fired. Though I don't know if it got called when the unit was hit by a weapon as well. I read somewhere that both RockUnit and HitByWeapon are called then...

All I want to do is distribute the two shots over two firepoints (AND spawning muzzle flashes and extra fancy stuff like exhaust smoke and fire 8)) without relying on scripted reload times or using two weapons and slaving the second to the first AND scripting a delay in. That's entirely possible but it's ugly. I'd rather have one manageable weapon for which I don't need to recompile the script each time I want to change the reload time.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Um, instead of having the weapon return(TRUE), have it fire the weapon in question via emit-sfx and then sleep.

As for compiling every time you want to change the delay... er, sorry, but that's a big problem... why? I mean, by the time you get everything else synched up timing-wise, you're hardly going to want to futz with something that minor, when you can just change the damage/AOE and balance that way. Just a thought.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

rattle wrote:Use play-sound("sample", volume) in StartMove() or StopMove() in the unit script. Select sound can't have multiple sounds.
Will that mean that i will have to remove the sounds from the sound class so i don't get double sounds?

Does the StartMove() gets activated anytime we give a move order or only when it was stoped and starts to move?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

StopMove() gets called when the unit really stops, not just when you hit the button or key. Same for StartMove(). Yes you need to remove the sounds from the tdf.

Hm Argh using emit-sfx for that is not good at all because it's ignoring stuff like smoke trails on missiles. It would be so cool if we could control the when-a-unit fires stuff completely by script. :(

Think I'll just use a slaved weapon and time it myself
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Another question: Is it possible to make a high trajectory weapon fire in a lower arc? If so, how?

At the moment I restrict the pitch to which the launchers turn to pitch/2, but increasing the range will make it clip into the body yet again. Restricting pitch by a condition is confusing. :P
Locked

Return to “Game Development Tutorials & Resources”