Page 2 of 59
Posted: 15 Oct 2006, 19:41
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.
Posted: 15 Oct 2006, 19:44
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?)?
Posted: 15 Oct 2006, 22:48
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

).
Posted: 22 Oct 2006, 23:40
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..
Posted: 23 Oct 2006, 09:28
by KDR_11k
2nd because 1st is TC and TC was here first.
Posted: 23 Oct 2006, 13:15
by Snipawolf
I meant to ask for team color not alpha, but I found out while diddling around yesterday, thanks anyway.
Posted: 23 Oct 2006, 13:38
by rattle
You do know how to get most of your questions answered, do you?
http://taspring.clan-sy.com/phpbb/search.php 
Posted: 23 Oct 2006, 22:41
by Snipawolf
I hate that thing, the more words I put in the search bar the more results I find..
Dang backwards search bar..
Posted: 25 Oct 2006, 02:46
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?
Posted: 25 Oct 2006, 03:49
by rattle
Yes.
Posted: 25 Oct 2006, 03:51
by Snipawolf
Good, good.. Whoever says the spring engine can't be manipulated is a fool.. A fool I tell you..
Posted: 25 Oct 2006, 16:59
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)
Posted: 25 Oct 2006, 18:06
by rattle
Use play-sound("sample", volume) in StartMove() or StopMove() in the unit script. Select sound can't have multiple sounds.
Posted: 25 Oct 2006, 23:10
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?
Posted: 26 Oct 2006, 12:25
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

) 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.
Posted: 26 Oct 2006, 13:04
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.
Posted: 26 Oct 2006, 14:03
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?
Posted: 26 Oct 2006, 14:38
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
Posted: 26 Oct 2006, 15:36
by rattle
Posted: 26 Oct 2006, 16:50
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.
