helpstill.blogg.se

Sourcemod l4d2 flamethrower
Sourcemod l4d2 flamethrower










New Float :m_flNextPrimaryAttack = GetEntPropFloat( GetPlayerWeaponSlot(client, slot), Prop_Send, "m_flNextPrimaryAttack") If ( GetPlayerWeaponSlot(client, slot) > 0) Stock AdjustWeaponSpeed(client, Float :Amount, slot) || StrEqual(name, "weapon_hunting_rifle") || StrEqual(name, "weapon_pumpshotgun") || StrEqual(name, "weapon_shotgun_chrome"))ĪdjustWeaponSpeed(client, GetConVarFloat(WeaponSpeedAmount), 0) Įlse if ( StrEqual(name, "weapon_melee"))ĪdjustWeaponSpeed(client, GetConVarFloat(WeaponSpeedAmount), 1) || StrEqual(name, "weapon_sniper_awp") || StrEqual(name, "weapon_sniper_military") || StrEqual(name, "weapon_sniper_scout")

sourcemod l4d2 flamethrower

|| StrEqual(name, "weapon_autoshotgun") || StrEqual(name, "weapon_shotgun_spas") || StrEqual(name, "weapon_rifle_m60") || StrEqual(name, "weapon_rifle") || StrEqual(name, "weapon_rifle_sg552") || StrEqual(name, "weapon_rifle_ak47") If ( StrEqual(name, "weapon_smg") || StrEqual(name, "weapon_smg_silenced") || StrEqual(name, "weapon_smg_mp5") GetClientWeapon(client, name, sizeof(name)) If (buttons & IN_ATTACK || buttons & IN_ATTACK2) If ( GetConVarInt(WeaponSpeedEnabled) = 1 || WeaponSpeed = 1) If ( IsClientInGame(client) & ! IsFakeClient(client) & IsPlayerAlive(client) & GetClientTeam(client) = 2) OnPlayerRunCmd seems to work best for this so we can get the right frame to set our values on the players weapon Public Action : OnPlayerRunCmd(client, &buttons, &impulse, Float :vel, Float :angles, &weapon) New String :target, String :arg2 ĭecl String :target_name ĭecl target_list, target_count, bool :tn_is_ml ReplyToCommand(client, " Usage: l4d2_weaponspeed ") ReplyToCommand(client, " Must be in game to modify Weapon Speed on yourself") PrintToChat(client, " \x01 Your \x05Weapon Speed \x01 has returned to normal") PrintToChat(client, " \x01 Your \x03Weapon Speed \x01 has been modified") Public Action : Command_WeaponSpeed(client, args) WeaponSpeedAmount = CreateConVar( "l4d2_weaponspeed_amount", "1.6", " - Weapon Attack Speed Modified Value", FCVAR_NOTIFY, true, 1.0, true, 2.0) WeaponSpeedEnabled = CreateConVar( "l4d2_weaponspeed_everyone", "1", " - Apply the Weapon Attack Speed Modifier on Everyone?", FCVAR_NOTIFY, true, 0.0, true, 1.0) RegAdminCmd( "l4d2_weaponspeed", Command_WeaponSpeed, ADMFLAG_BAN, "l4d2_weaponspeed - Changes clients default weapon speed") ĬreateConVar( "l4d2_weaponspeed_version", PLUGIN_VERSION, "L4D2 Weapon Attack Speed Modifier Version", FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_DONTRECORD) New Handle :WeaponSpeedAmount = INVALID_HANDLE

sourcemod l4d2 flamethrower

New Handle :WeaponSpeedEnabled = INVALID_HANDLE Name = "L4D2 Weapon Attack Speed Modifier",ĭescription = "Modifies the Survivors Weapon Attack Speed",












Sourcemod l4d2 flamethrower