trigger damage not working

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

trigger damage not working

Post by tuffstuff7 »

ok i am still trying to fig out how to use the trigger thing and am working on a trigger dooor as well as a trigger hurt lol the trigger door is on another post here

here is my script

// new_map2
// ARCHITECTURE: Tuffstuff7
// SCRIPTING: Tuffstuff7


main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "new-map2"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" "Author"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "Tuffstuff7"
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "new-map2"

//-----------------------------------------------
// PRESPAWN
//-----------------------------------------------

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/new-map2.scr

//-----------------------------------------------
// SPAWN
//---------------------------------------------

level waittill spawn

damage:

$barbwire volumedamage 10

thread fan1
end

fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatey 325





$world farplane 10000
$world farplane_color (.333 .333 .333)

exec global/ambient.scr m3l3

end


now on radiant i made a brush in front of the barbed wire

wait 1

setthread damage

targetname barbwire


in the box i see "damage" sets
damage default is 10

did i do these setting wrong or was i supposed to do something else

any helpers???????
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

You trigger multiple must have a targetname and a setthread, "wait" is optional.

In your setthread:

setthread:
$name volumedamage xxx
end
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

If you set the 'damage' flag you have to shoot the trigger to activate it.
Image
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

ummmm ok roxx what you are talking about is in my script??????was what i did in raidant ok? also you have


setthread:
$name volumedamage xxx
end

do i put that set thread in there in the script or does another name go there also name whoudl that be "damage"or "barbwire" going by what i did

ty guys for responding and being "good guys"
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

If you check "damage", means you have to shoot the trigger to activate it. Don't check it.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

trigger_hurt

Post by tltrude »

I think you guys are confusing him.

Trigger_hurt does not work, don't use it. Change your trigger to a trigger_multiple. Cut the trigger to fit around your wire if needed.

In it's properties (key N), type:

Key: setthread
value: barbwire_damage

Key: targetname
value: barbwire1

Ok, add this thread to your script after the "end" line under "level waittill spawn":

//--------------------------
// barbwire thread
//--------------------------

barbwire_damage:

$barbwire[local.index] waittill trigger
local.sucker = parm.other
if (local.sucker istouching $barbwire[local.index] == 1)
{
local.sucker exec global/bullethit.scr (0 -1 0) 1 1 1
}
wait 1
goto barbwire_damage

end

//----------------------------

You can take out all that other stuff about damage from your script. If you want more barbwire triggers, set them up the same way and change the targetname to barbwire2, barbwire3, etc...

I hope that works.
Tom Trude,

Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Yeah, that's what i meant, use a trigger multiple, not a trigger hurt.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply