shooted selectively

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

shooted selectively

Post by Tropheus »

Hie everybody.

is it possible to define the weapon allowed to shoot an object ?

I want a nebelwefer fired only by a panzerchreck and with grenades.

Thanks for your answers.

tropheus
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Single

Post by tltrude »

Only for singleplyer maps using a "loadout" script.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I take it you mean that you want to control what kind of damage an object (entity) can take.

You can do so by simply making them 'immune' for certain kinds of damage, like:

$nebelwerfer immune bash
$nebelwerfer immune bullet
$nebelwerfer immune fast_bullet
Image
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post by Tropheus »

ithnaks for your answers, but i just tried it, and nothing more.

i put these lines in the main thread. ==> no change
i put in my thread ==> no change.

Why ???

i don't know. i paste my scr. if you see a mistake...
my trigger damage is called nebel_trigger.

$nebel_trigger.health=200
thread objets_caches
$nebel_trigger thread nebel_explo $nebel_trigger
level.script = "maps/test_nebel.scr"
end
////////////////////objets cach?s//////////////
objets_caches:
$nebel_d hide
end
///////////////////////////////////////////////
///////////////////explosion du nebel//////////////
nebel_explo:
self immune bash
self immune bullet
self immune fast_bullet
self immune grenade
while ($nebel_trigger.health > 100)
waitframe
local.exp1=spawn "animate/fx_explosion_tank.tik"
local.exp1.origin=$nebel.origin
local.exp1 anim start
radiusdamage $nebel.origin 75 200
$nebel remove
$nebel_d show
end

thanks for your answers.

tropheus
Post Reply