Skip to content

Latest commit

 

History

History

l4d2_weapon_csgo_reload

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
Quickswitch Reloading like CS:GO in L4D2

-AlliedModders-
[L4D1/2] CS:GO Quickswitch Reloading (v2.0, 2020-11-10): https://forums.alliedmods.net/showthread.php?t=318820

-Video-
idea from CS:GO Quickswitch Reloading: https://www.youtube.com/watch?v=VfdfbWhVP-8
videoshowcase: https://youtu.be/Ur0uNQTZhbU

-Changelog-
v 2.1 (2021-4-24)
- fixed DataPack memory leak issue

v 2.0 (2020-11-10)
- replace OnPlayerRunCmd with SDKHook_Reload, better safe and improve code.

v 1.9 (2020-10-1)
- adjust "l4d2_sg552_reload_clip_time" from 1.3 to 1.6 since L4D2 "The Last Stand" update.

v 1.8 (2020-8-12)
- new convars, control each weapon max clip.
- fixed dual pistol not working.

-ConVar-
cfg\sourcemod\l4d2_weapon_csgo_reload.cfg
// ak47 max clip
l4d2_ak47_clip "40"

// reload time for ak47 clip
l4d2_ak47_reload_clip_time "1.2"

// awp max clip
l4d2_awp_clip "20"

// reload time for awp clip
l4d2_awp_reload_clip_time "2.0"

// desert rifle max clip
l4d2_desertrifle_clip "60"

// reload time for desert rifle clip
l4d2_desertrifle_reload_clip_time "1.8"

// dual pistol max clip
l4d2_dualpistol_clip "30"

// reload time for dual pistol clip
l4d2_dualpistol_reload_clip_time "1.75"

// grenade max clip
l4d2_grenade_clip "1"

// reload time for grenade clip
l4d2_grenade_reload_clip_time "2.5"

// huntingrifle max clip
l4d2_huntingrifle_reload_clip "15"

// reload time for hunting rifle clip
l4d2_huntingrifle_reload_clip_time "2.6"

// mangum max clip
l4d2_mangum_clip "8"

// reload time for mangum clip
l4d2_mangum_reload_clip_time "1.18"

// pistol max clip
l4d2_pistol_clip "15"

// reload time for pistol clip
l4d2_pistol_reload_clip_time "1.2"

// rifle max clip
l4d2_rifle_reload_clip "50"

// reload time for rifle clip
l4d2_rifle_reload_clip_time "1.2"

// scout max clip
l4d2_scout_clip "15"

// reload time for scout clip
l4d2_scout_reload_clip_time "1.45"

// sg552 max clip
l4d2_sg552_clip "50"

// reload time for sg552 clip
l4d2_sg552_reload_clip_time "1.3"

// smg max clip
l4d2_smg_reload_clip "50"

// reload time for smg clip
l4d2_smg_reload_clip_time "1.04"

// smg mp5 max clip
l4d2_smgmp5_clip "50"

// reload time for smg mp5 clip
l4d2_smgmp5_reload_clip_time "1.7"

// smg silenced max clip
l4d2_smgsilenced_clip "50"

// reload time for smg silenced clip
l4d2_smgsilenced_reload_clip_time "1.05"

// sniper military max clip
l4d2_snipermilitary_clip "30"

// reload time for sniper military clip
l4d2_snipermilitary_reload_clip_time "1.8"

// 0=off plugin, 1=on plugin
l4d2_weapon_csgo_reload_allow "1"

// enable previous clip recover?
l4d2_weapon_csgo_reload_clip_recover "1"