/*************************************************************** Varied Weapon Speeds Author: TaRgEt*TuRkEy - Vaughn Royko Version: 1.0.1 Mod: Half-Life Deathmatch (Valve) Requires: AMX Mod X v1.0 Description: This plugin creates a more dynamic feel to weapons in Half-Life by varying the maxspeed based on which weapon you are holding. For example, you can run faster with a crowbar than you can with a rocket launcher. You can control maxspeeds using the cvars on the fly or in server.cfg/listenserver.cfg. I used entity names for the cvars instead of official weapon names (ex: tau cannon = guass). Note: YOU MUST SET YOUR SERVER "sv_maxspeed" TO A HIGHER VALUE TO USE VALUES IN THIS PLUGIN THAT ARE OVER THE STANDARD "270". To be safe put the following line in server.cfg or listenserver.cfg: sv_maxspeed 400 Thanks: Rabid Baboon MMX Cvars: amx_crowbar_speedamx_9mmhandgun_speed amx_python_speed amx_9mmAR_speed amx_shotgun_speed amx_crossbow_speed amx_rpg_speed amx_gauss_speed amx_egon_speed amx_hornetgun_speed amx_handgrenade_speed amx_tripmine_speed amx_satchel_speed amx_snark_speed ***************************************************************/ #include #include new Title[32] = "Varied Weapon Speeds" new Version[32] = "1.0.1" new Author[16] = "TaRgEt*TuRkEy" new Float:maxSpeed public WeaponSwitch(id) { new wepi = read_data(2) switch (wepi) { case 1: maxSpeed = get_cvar_float("amx_crowbar_speed") case 2: maxSpeed = get_cvar_float("amx_9mmhandgun_speed") case 3: maxSpeed = get_cvar_float("amx_python_speed") case 4: maxSpeed = get_cvar_float("amx_9mmAR_speed") case 6: maxSpeed = get_cvar_float("amx_crossbow_speed") case 7: maxSpeed = get_cvar_float("amx_shotgun_speed") case 8: maxSpeed = get_cvar_float("amx_rpg_speed") case 9: maxSpeed = get_cvar_float("amx_gauss_speed") case 10: maxSpeed = get_cvar_float("amx_egon_speed") case 11: maxSpeed = get_cvar_float("amx_hornetgun_speed") case 12: maxSpeed = get_cvar_float("amx_handgrenade_speed") case 13: maxSpeed = get_cvar_float("amx_tripmine_speed") case 14: maxSpeed = get_cvar_float("amx_satchel_speed") case 15: maxSpeed = get_cvar_float("amx_snark_speed") } set_user_maxspeed(id,maxSpeed) return PLUGIN_HANDLED } public plugin_init() { register_plugin(Title,Version,Author) register_event("CurWeapon","WeaponSwitch","b","1=1") register_cvar("amx_crowbar_speed","350") register_cvar("amx_9mmhandgun_speed","320") register_cvar("amx_python_speed","300") register_cvar("amx_9mmAR_speed","260") register_cvar("amx_shotgun_speed","250") register_cvar("amx_crossbow_speed","270") register_cvar("amx_rpg_speed","200") register_cvar("amx_gauss_speed","220") register_cvar("amx_egon_speed","100") register_cvar("amx_hornetgun_speed","220") register_cvar("amx_handgrenade_speed","380") register_cvar("amx_tripmine_speed","370") register_cvar("amx_satchel_speed","340") register_cvar("amx_snark_speed","390") return PLUGIN_HANDLED }