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

play fx on grenade explosion or locate where a grenade explodes

broken avatar :(
Created 10 years ago
by louisfm16
0 Members and 1 Guest are viewing this topic.
1,205 views
broken avatar :(
×
broken avatar :(
Location: usCali
Date Registered: 11 July 2015
Last active: 9 years ago
Posts
21
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
Live and Learn
×
louisfm16's Groups
louisfm16's Contact & Social LinksPortfolio
Hi im adding custom nades to my map and I got the models working great and all but now I want to play an effect where and when the grenade explodes, keep in mind that I want to preserve the default explosion effects that happen with panzer, mokeys, ect. essentially I want to play an extra effect where a grenade explodes. I would really appreciate some help thanks!
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,186
Respect
1,369Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
You could add the effect by script, this is how you can keep track of grenades:


Code Snippet
Plaintext
wait_for_nade()
{
self endon( "death" );

while(1)
{
self waittill( "grenade_fire", grenade, weaponName );
self thread grenade_fired(grenade, weapname);
}
}

grenade_fired(grenade, weapname)
{
self endon( "death" );

while( isdefined( grenade ) )
{
last origin = grenade.origin;
wait 0.1;
}

Iprintlnbold( "grenade exploded at: "+last_origin );
}

 
Loading ...