Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Backblast script  (Read 6865 times)

0 Members and 1 Guest are viewing this topic.

Fishion

  • Guest
Re:Backblast script
« Reply #15 on: 30 Aug 2002, 19:21:59 »
Such a Script should be possibe.
Though I'm not going to write it.
First you'll need a trigger, which will be placed over the
shooter once a shot is fired.
Then you do the following (per Script) with everybody inside
the trigger area:
Is it the unit infantry?
?(trigger_unit distance player < _hurting):blahblah
Is the unit in a cone behind the player, can be done via
GetDir, some sin and cos. by calculating the direction of the
line between the player and the unit.
I think you can assume that every unit is on level ground.
then you do:
unit Setdammage (1 - 0.1*(unit distance player))
(the closer they are the more dammage...)

It's just an idea how to do it, unfortunatly obstacles cannot
really be taken into account.

-Fishion