UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

trigger damage (fire)

broken avatar :(
Created 11 years ago
by ville88
0 Members and 1 Guest are viewing this topic.
2,300 views
broken avatar :(
×
broken avatar :(
Location: rueurope
Date Registered: 2 January 2012
Last active: 2 years ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
ville88's Groups
How to add a trigger (damage) for the fire?
KVP or scripts? need help
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Just spawn a trigger radius and damage anything inside it.

You can use my unfinished shootable gas can function i was working on as an reference if you don't know how to do that:

Code Snippet
Plaintext
gasfire_radius(origin, radius)
{
trigger = Spawn( "trigger_radius", origin, 0, radius, 48 );
while(1)
{
trigger waittill( "trigger", other );
if(isPlayer(other))
{
other DoDamage( level.gascans["damage_player"], origin );
}
if(isai(other))
{
other DoDamage( level.gascans["damage_ai"], origin );
}
wait(level.gascans["loop_wait"]);
}
trigger delete();
}

Last Edit: May 18, 2015, 12:49:14 am by daedra descent
broken avatar :(
×
broken avatar :(
Location: rueurope
Date Registered: 2 January 2012
Last active: 2 years ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
ville88's Groups
Just spawn a trigger radius and damage anything inside it.

You can use my unfinished shootable gas can function i was working on as an reference if you don't know how to do that:

Code Snippet
Plaintext
gasfire_radius(origin, radius)
{
trigger = Spawn( "trigger_radius", origin, 0, radius, 48 );
while(1)
{
trigger waittill( "trigger", other );
if(isPlayer(other))
{
other DoDamage( level.gascans["damage_player"], origin );
}
else if(isai(other))
{
other DoDamage( level.gascans["damage_ai"], origin );
}
wait(level.gascans["loop_wait"]);
}
trigger delete();
}


Trigger radius without "KVP"? (need like Cod WAW MISSIONS)
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet

Trigger radius without "KVP"? (need like Cod WAW MISSIONS)

So you just want to spawn the radius at a specific origin without an entity then? Just pass the coordinates in the first argument like (0, 0, 0). I don't know if thats how they do it in the campaign though...
Last Edit: May 18, 2015, 12:49:02 am by daedra descent
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 7 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
first of all do damage will restart the game if you die, use radius damage, i think it should work like this.

Code Snippet
Plaintext
while(1)
{
RadiusDamage( (0, 0, 0), radius_size, max_dmg, min_dmg );
wait 1;
}

 
Loading ...