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

Custom "revive"

broken avatar :(
Created 7 years ago
by ColdShrimp2
0 Members and 1 Guest are viewing this topic.
1,700 views
broken avatar :(
×
broken avatar :(
Location: usAustria
Date Registered: 5 August 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
ColdShrimp2's Groups
ColdShrimp2's Contact & Social Links
How can I make it so instead of reviving a player it just says "Press &&1 to put out of misery" or something and kills the downed player?
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
would this be the downed player doing this or the reviver?
broken avatar :(
×
broken avatar :(
Location: usAustria
Date Registered: 5 August 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
ColdShrimp2's Groups
ColdShrimp2's Contact & Social Links
would this be the downed player doing this or the reviver?

reviver
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
all changes will be done in _laststand.gsc

please back up this file since this wont be tested, if something goes wrong you can revert back to the original script

find
Code Snippet
Plaintext
revive_success( reviver )
{
self notify ( "player_revived" );
self reviveplayer();

//CODER_MOD: TOMMYK 06/26/2008 - For coop scoreboards
reviver.revives++;

// CODER MOD: TOMMY K - 07/30/08
reviver thread maps\_arcademode::arcadeMode_player_revive();

//CODER_MOD: Jay (6/17/2008): callback to revive challenge
if( isdefined( level.missionCallbacks ) )
{
maps\_challenges_coop::doMissionCallback( "playerRevived", reviver );
}

setClientSysState("lsm", "0", self); // Notify client last stand ended.

self.revivetrigger delete();
self.revivetrigger = undefined;

self laststand_giveback_player_weapons();

self.ignoreme = false;
}


replace it with
Code Snippet
Plaintext
revive_success( reviver )
{
setClientSysState("lsm", "0", self); // Notify client last stand ended.

if (isdefined(level.is_zombie_level ) && level.is_zombie_level)
{
self [[level.player_becomes_zombie]]();
}
else
{
self.ignoreme = false;
self mission_failed_during_laststand( self );
}

}

find and replace all

Code Snippet
Plaintext
&"GAME_BUTTON_TO_REVIVE_PLAYER"

with

Code Snippet
Plaintext
"Hold &&1 To Put Out Of Misery"

 
Loading ...