Home   Help Search Login Register  

Author Topic: Explosion confusion  (Read 543 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Explosion confusion
« on: 09 Jun 2005, 04:02:18 »
A script that makes it so if player or AI comanders have explosions landing very close  to them then they cant spot enemys or give any orders to their men. like from the noise and concussions.

thanks

Offline 456820

  • Contributing Member
  • **
Re:Explosion confusion
« Reply #1 on: 09 Jun 2005, 16:42:30 »
erm how about disbaling there radio when artillery starts firing but apart from that i dont know if its possible but if so it would require a hell load of scripts

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Explosion confusion
« Reply #2 on: 09 Jun 2005, 17:31:35 »
Well, you could try the simple approach, as the harder would be making an event handler and tracing their bullets for every person who could possibly shoot a missle.

Code: [Select]
_unit = _this select 0
#reset
_dmg = getdammage _unit
@(getdammage _unit > (_dmg - 0.2))
?(!alive _unit):exit
_grp = group _unit
[_unit] join grpnull
~5
[_unit] join _grp
goto"reset"
This will check all dammage however, so if he is shot he will also not be able to report back. Also this will not work for the players group as you will constantly hear "2 follow 1","3 follow 1", ect.
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline 456820

  • Contributing Member
  • **
Re:Explosion confusion
« Reply #3 on: 09 Jun 2005, 17:42:57 »
a good idea is to use
enableradio flase init so you dont hear 2 follow 1 or what ever the re enable the radio later

bluehand

  • Guest
Re:Explosion confusion
« Reply #4 on: 11 Jun 2005, 23:49:53 »
I guess it might depend on the source of the explosion.  If it was something scripted in the mission (like calling down artillery, or detonating a pipebomb) then you could script (or eventHandle) a trigger onto the target position (with a suitable radius) and have any enemy (or just anybody) in the blast zone get a setSkill to 0 or something.
You could possibly even make an array to remember what their skill used to be, then wait 15 seconds and start stepping it back up.
Wouldn't want to try it for a fired eventHandler on, say, all AT missiles, or tank shells, or grenades, etc...