## ETPub PCR alpha hacks (etpub_pcr_ah) ## (C) 2006-2007 PatheticCockroach.com ## This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License ## Derivative works may only be done if they are distributed with their source code. ## ## The original etpub_pcr_ah source and binaries can be found around http://www.patheticcockroach.com/etserver/etpub_pcr.php ## ## Note : ETPub PCR alpha hacks are just small modifications for ETPub (http://www.etpub.org) g_fastres : # With g_fastres set to 1, players will instantly get up and is instantly mobile after being revived by a medic. # However, the player is not invulnerable then. # 0 - Disabled (standard res, 3 seconds shield) # 1 - Enabled (fastres, no shield) New : if you set it to 10 or higher, g_fastres sets the shield duration, in milliseconds (and the player is still instantly mobile) default : 0 ------------------------- MODIFICATION STARTS HERE src\game\g_client.c : (line 2988) **** REPLACE // Xian - Moved the invul. stuff out of SetWolfSpawnWeapons and put it here for clarity if ( g_fastres.integer == 1 && revived ) client->ps.powerups[PW_INVULNERABLE] = level.time + 1000; else if(revived) client->ps.powerups[PW_INVULNERABLE] = level.time + 3000; **** WITH // Xian - Moved the invul. stuff out of SetWolfSpawnWeapons and put it here for clarity if ( g_fastres.integer >= 10 && revived ) client->ps.powerups[PW_INVULNERABLE] = level.time + g_fastres.integer; else if( g_fastres.integer == 0 && revived ) client->ps.powerups[PW_INVULNERABLE] = level.time + 3000; else if( revived ) client->ps.powerups[PW_INVULNERABLE] = level.time;