## 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_spawnInvulFair : Removes the spawn protection when the player fires his first shot (note : the spawn protection will still be removed after the g_spawnInvul time) 0 - Disabled 1 - Enabled default : 1 ------------------------- MODIFICATION STARTS HERE src\game\g_weapon.c : (line 4682) **** AFTER // Rafael mg42 if (ent->client->ps.persistant[PERS_HWEAPON_USE] && ent->active) { return; } **** ADD // Remove spawn protection if(ent->client->ps.powerups[PW_INVULNERABLE] >= level.time && g_spawnInvulFair.integer==1) { ent->client->ps.powerups[PW_INVULNERABLE] = level.time - 100; // And tell the player CP("cp \"You lost your spawn protection\""); } src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADDED extern vmCvar_t g_spawnInvulFair; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_spawnInvulFair; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_spawnInvulFair, "g_spawnInvulFair", "1", 0 },