Reintroduce the knife for hiders in order to break through glass.
Knifing seekers will not immediately lead to a kill, just like in previous Hide & Seek mods.master
parent
8ad7afa455
commit
bd3d2c0d9c
|
@ -566,10 +566,6 @@ handleSeeker() {
|
|||
// Disable third-person mode
|
||||
player SetClientDvar("cg_thirdperson", 0);
|
||||
|
||||
// Set player health high enough for stabbing to not instantly kill them
|
||||
//player.maxhealth = 280;
|
||||
//player.health = 280;
|
||||
|
||||
// Take weapons and perks
|
||||
player ClearPerks();
|
||||
player TakeAllWeapons();
|
||||
|
@ -622,6 +618,10 @@ handleSeeker() {
|
|||
player GivePerk("specialty_falldamage");
|
||||
player GivePerk("specialty_fastreload");
|
||||
|
||||
// Set player health high enough for stabbing to not instantly kill them
|
||||
player.maxhealth = 280;
|
||||
player.health = 280;
|
||||
|
||||
player thread enableUnlimitedReload();
|
||||
player thread enableWeaponDicing("+actionslot 3");
|
||||
player thread giveHelpfulHintsForSeeker();
|
||||
|
@ -646,6 +646,15 @@ handleHider() {
|
|||
player ClearPerks();
|
||||
player TakeAllWeapons();
|
||||
|
||||
waittillframeend;
|
||||
|
||||
player allowAds(false);
|
||||
player giveWeapon("deserteagle_tactical_mp", 0, false);
|
||||
player setWeaponAmmoClip("deserteagle_tactical_mp", 0);
|
||||
player setWeaponAmmoStock("deserteagle_tactical_mp", 0);
|
||||
player setSpawnWeapon("deserteagle_tactical_mp");
|
||||
player switchtoWeapon("deserteagle_tactical_mp");
|
||||
|
||||
// Give gametype-friendly perks
|
||||
player GivePerk("specialty_quieter");
|
||||
player GivePerk("specialty_fastmantle");
|
||||
|
@ -670,11 +679,6 @@ handleHider() {
|
|||
|
||||
player clearLowerMessage("seekerreleasemsg");
|
||||
|
||||
/*
|
||||
player giveWeapon("deserteagle_tactical_mp", 0, false);
|
||||
player switchtoWeapon("deserteagle_tactical_mp");
|
||||
*/
|
||||
|
||||
// "Seekers have been released." message on screen
|
||||
notifyData = spawnstruct();
|
||||
notifyData.titleText = &"HIDEANDSEEK_SEEKERS_RELEASED";
|
||||
|
@ -716,7 +720,8 @@ setDisguiseModel(model)
|
|||
player PlaySound(game["hiders_changed_sound"]);
|
||||
|
||||
// Seems like changing model causes weapons to be reloaded
|
||||
player TakeAllWeapons();
|
||||
player setWeaponAmmoClip("deserteagle_tactical_mp", 0);
|
||||
player setWeaponAmmoStock("deserteagle_tactical_mp", 0);
|
||||
|
||||
player SetClientDvar("cg_thirdpersonrange", 300);
|
||||
player updateDisguiseView();
|
||||
|
|
Loading…
Reference in New Issue