Grabby now spams as fast as possible, and made denyuse sound quieter

could do the same for Spam Alt Fire, but i tried the same approach and it did not work. it would probably not make much difference anyway
This commit is contained in:
Pinsplash 2024-04-10 11:07:28 -05:00
parent 7997690aef
commit a6b52070e6
5 changed files with 849 additions and 10 deletions

View File

@ -0,0 +1,282 @@
"HL2Player.SprintNoPower"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_denydevice.wav"
}
"HL2Player.SprintStart"
{
"channel" "CHAN_VOICE"
"volume" "0.9"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_sprint.wav"
}
"HL2Player.FlashLightOn"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.FlashLightOff"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "items/ammo_pickup.wav"
}
"HL2Player.TrainUse"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"HL2Player.Use"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseNPC"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.2"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_denyselect.wav"
}
"HL2Player.BurnPain"
{
"channel" "CHAN_VOICE"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_burnpain1.wav"
"wave" "player/pl_burnpain2.wav"
"wave" "player/pl_burnpain3.wav"
}
}
// SHARED player sounds
"Player.Death"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.PlasmaDamage"
{
"channel" "CHAN_BODY"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"wave" "player/general/flesh_burn.wav"
}
"Player.SonicDamage"
{
"channel" "CHAN_BODY"
"volume" "0.7"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.DrownStart"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"wave" "player/pl_drown1.wav"
}
"Player.Swim"
{
"channel" "CHAN_STATIC"
"volume" "0.5"
"pitch" "PITCH_NORM"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.FallDamage"
{
"channel" "CHAN_AUTO"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/pl_fallpain1.wav"
"wave" "player/pl_fallpain3.wav"
}
}
"Player.FallGib"
{
"channel" "CHAN_ITEM"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "physics/body/body_medium_break2.wav"
}
}
"Player.DrownContinue"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"rndwave"
{
"wave" "player/pl_drown1.wav"
"wave" "player/pl_drown2.wav"
"wave" "player/pl_drown3.wav"
}
}
"Player.Wade"
{
"channel" "CHAN_BODY"
"volume" "0.25"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.AmbientUnderWater"
{
"channel" "CHAN_STATIC"
"volume" "0.22"
"soundlevel" "SNDLVL_75dB"
"wave" "ambient/water/underwater.wav"
}
"Player.UseTrain"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "95,105"
"wave" "items/ammo_pickup.wav"
}
"Geiger.BeepLow"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger1.wav"
"wave" "player/geiger2.wav"
}
}
"Geiger.BeepHigh"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger2.wav"
"wave" "player/geiger3.wav"
}
}

View File

@ -0,0 +1,282 @@
"HL2Player.SprintNoPower"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_denydevice.wav"
}
"HL2Player.SprintStart"
{
"channel" "CHAN_VOICE"
"volume" "0.9"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_sprint.wav"
}
"HL2Player.FlashLightOn"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.FlashLightOff"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "items/ammo_pickup.wav"
}
"HL2Player.TrainUse"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"HL2Player.Use"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseNPC"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.2"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_denyselect.wav"
}
"HL2Player.BurnPain"
{
"channel" "CHAN_VOICE"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_burnpain1.wav"
"wave" "player/pl_burnpain2.wav"
"wave" "player/pl_burnpain3.wav"
}
}
// SHARED player sounds
"Player.Death"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.PlasmaDamage"
{
"channel" "CHAN_BODY"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"wave" "player/general/flesh_burn.wav"
}
"Player.SonicDamage"
{
"channel" "CHAN_BODY"
"volume" "0.7"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.DrownStart"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"wave" "player/pl_drown1.wav"
}
"Player.Swim"
{
"channel" "CHAN_STATIC"
"volume" "0.5"
"pitch" "PITCH_NORM"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.FallDamage"
{
"channel" "CHAN_AUTO"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/pl_fallpain1.wav"
"wave" "player/pl_fallpain3.wav"
}
}
"Player.FallGib"
{
"channel" "CHAN_ITEM"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "physics/body/body_medium_break2.wav"
}
}
"Player.DrownContinue"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"rndwave"
{
"wave" "player/pl_drown1.wav"
"wave" "player/pl_drown2.wav"
"wave" "player/pl_drown3.wav"
}
}
"Player.Wade"
{
"channel" "CHAN_BODY"
"volume" "0.25"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.AmbientUnderWater"
{
"channel" "CHAN_STATIC"
"volume" "0.22"
"soundlevel" "SNDLVL_75dB"
"wave" "ambient/water/underwater.wav"
}
"Player.UseTrain"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "95,105"
"wave" "items/ammo_pickup.wav"
}
"Geiger.BeepLow"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger1.wav"
"wave" "player/geiger2.wav"
}
}
"Geiger.BeepHigh"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger2.wav"
"wave" "player/geiger3.wav"
}
}

View File

@ -0,0 +1,282 @@
"HL2Player.SprintNoPower"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_denydevice.wav"
}
"HL2Player.SprintStart"
{
"channel" "CHAN_VOICE"
"volume" "0.9"
"soundlevel" "SNDLVL_60dB"
"wave" "player/suit_sprint.wav"
}
"HL2Player.FlashLightOn"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.FlashLightOff"
{
"channel" "CHAN_WEAPON"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "PITCH_NORM"
"wave" "items/flashlight1.wav"
}
"HL2Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "items/ammo_pickup.wav"
}
"HL2Player.TrainUse"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"HL2Player.Use"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseNPC"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"HL2Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.2"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_denyselect.wav"
}
"HL2Player.BurnPain"
{
"channel" "CHAN_VOICE"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_burnpain1.wav"
"wave" "player/pl_burnpain2.wav"
"wave" "player/pl_burnpain3.wav"
}
}
// SHARED player sounds
"Player.Death"
{
"channel" "CHAN_VOICE"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.PlasmaDamage"
{
"channel" "CHAN_BODY"
"volume" "0.5"
"soundlevel" "SNDLVL_75dB"
"wave" "player/general/flesh_burn.wav"
}
"Player.SonicDamage"
{
"channel" "CHAN_BODY"
"volume" "0.7"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/pl_pain5.wav"
"wave" "player/pl_pain6.wav"
"wave" "player/pl_pain7.wav"
}
}
"Player.DrownStart"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"wave" "player/pl_drown1.wav"
}
"Player.Swim"
{
"channel" "CHAN_STATIC"
"volume" "0.5"
"pitch" "PITCH_NORM"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.FallDamage"
{
"channel" "CHAN_AUTO"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "player/pl_fallpain1.wav"
"wave" "player/pl_fallpain3.wav"
}
}
"Player.FallGib"
{
"channel" "CHAN_ITEM"
"volume" "0.75"
"pitch" "90,110"
"soundlevel" "SNDLVL_NORM"
"rndwave"
{
"wave" "physics/body/body_medium_break2.wav"
}
}
"Player.DrownContinue"
{
"channel" "CHAN_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL_75dB"
"pitch" "90,110"
"rndwave"
{
"wave" "player/pl_drown1.wav"
"wave" "player/pl_drown2.wav"
"wave" "player/pl_drown3.wav"
}
}
"Player.Wade"
{
"channel" "CHAN_BODY"
"volume" "0.25"
"soundlevel" "SNDLVL_75dB"
"rndwave"
{
"wave" "player/footsteps/wade5.wav"
"wave" "player/footsteps/wade6.wav"
"wave" "player/footsteps/wade7.wav"
"wave" "player/footsteps/wade8.wav"
}
}
"Player.AmbientUnderWater"
{
"channel" "CHAN_STATIC"
"volume" "0.22"
"soundlevel" "SNDLVL_75dB"
"wave" "ambient/water/underwater.wav"
}
"Player.UseTrain"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"wave" "plats/train_use1.wav"
}
"Player.UseDeny"
{
"channel" "CHAN_ITEM"
"volume" "0.4"
"soundlevel" "SNDLVL_75dB"
"wave" "common/wpn_select.wav"
}
"Player.PickupWeapon"
{
"channel" "CHAN_ITEM"
"volume" "0.8"
"soundlevel" "SNDLVL_75dB"
"pitch" "95,105"
"wave" "items/ammo_pickup.wav"
}
"Geiger.BeepLow"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger1.wav"
"wave" "player/geiger2.wav"
}
}
"Geiger.BeepHigh"
{
"channel" "CHAN_STATIC"
"soundlevel" "SNDLVL_NONE"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "player/geiger2.wav"
"wave" "player/geiger3.wav"
}
}

View File

@ -499,7 +499,7 @@ public:
class CEUseSpam : public CChaosEffect
{
public:
void MaintainEffect() override;
void FastThink() override;
float m_flLastUseThink = -1;
};
class CENoBrake : public CChaosEffect

View File

@ -8882,16 +8882,9 @@ bool CEFloorIsLava::CheckStrike(const CTakeDamageInfo &info)
{
return (info.GetDamageType() & DMG_BURN) != 0;
}
void CEUseSpam::MaintainEffect()
void CEUseSpam::FastThink()
{
//apparently maintain effect can become desynced or something, so yeah
//if (m_flLastUseThink < gpGlobals->curtime)
//{
//i don't know why, but the wait amounts don't match up with what really happens. despite this command string looking like it should last for 4 seconds, it only lasts for 1
engine->ClientCommand(engine->PEntityOfEntIndex(1),
"+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;+use;wait 5;-use;wait 5;\n");
// m_flLastUseThink = gpGlobals->curtime + 1;
//}
UTIL_GetLocalPlayer()->m_afButtonPressed |= IN_USE;
}
void CENoBrake::StartEffect()
{