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

Make text appear when shooting a zombie

broken avatar :(
Created 7 years ago
by denis-24
0 Members and 1 Guest are viewing this topic.
1,905 views
broken avatar :(
×
broken avatar :(
Location: hr
Date Registered: 18 October 2013
Last active: 4 months ago
Posts
94
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Signature
oylmeo
×
denis-24's Groups
denis-24's Contact & Social Links
I'd like for some text to appear on screen when shooting a zombie with 1 bullet. Any easy way to do this?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2014
Last active: 3 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
Signature
Dead Palace
×
Riptide1106's Groups
Riptide1106's Contact & Social Links
this will put text on screen every time you shoot a zombie:

step1) put  a copy of _zombiemode_spawner in your root/mods/mapname/maps folder if you dont already have one there

step2) open _zombiemode_spawner in your root/mods/mapname/maps folder and add
Code Snippet
Plaintext
self thread text_on_hit();
under
Code Snippet
Plaintext
self thread zombie_think(); 
self thread zombie_gib_on_damage();
self thread zombie_damage_failsafe();
so now it should look like this:
Code Snippet
Plaintext
self thread zombie_think(); 
self thread zombie_gib_on_damage();
self thread zombie_damage_failsafe();
self thread text_on_hit();

step 3)  at the very bottom of _zombiemode_spawner paste this:
Code Snippet
Plaintext
text_on_hit()
{
while( 1 )
{
self waittill( "damage");
iprintln("YOUR TEXT HERE");
}
}

save the changes you've just made

step 4) in launcher go to the mod builder tab make sure the _zombiemode_spawner box is checked, then rebuild your mod.ff and IWD file.

That's all.
broken avatar :(
×
broken avatar :(
Location: hr
Date Registered: 18 October 2013
Last active: 4 months ago
Posts
94
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
denis-24's Groups
denis-24's Contact & Social Links
Thanks! I've modified it a bit, and it works great.

 
Loading ...