<Generic Melee Knock Back>
Introdution
this plugin gives u customizable melee attack knock back.
you can set weapon type that occurs knock back,
damage increase of knock back, knock back force,
team`s by knock back`s force, dmg increase,
enable/disable of knock back force and damage increase by friendlyfire
Requirements
this plugin needs the things listed below to work:
Installation
to install this plugin
- put the smx file in the sourcemod/plugins folder
to compile this plugin manually
- put all sp files in the sourcemod/scripting folder
- put all inc files in the sourcemod/scripting/include folder
- compile.
Configuration
to configurate this plugin to your likes
- to use auto generated cfg file
- run the plugin once, then the cfg will be generated in the cfg/sourcemod folder
- take a look at the options and change them to your preferences
- the options you choose in the cfg will be loaded on every map change
- cvarlist for this version
Code:
// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "GenericMeleeKnockBack.smx"
// 1 to enable 0 to disable
// -
// Default: "0"
GenericKnifeKnockBackMod_AllowDmgIncByTeam "0"
// 1 to enable 0 to disable
// -
// Default: "0"
GenericKnifeKnockBackMod_AllowKnockBackByTeam "0"
// damage increment of melee attack by Blue team
// -
// Default: "0"
GenericMeleeKnockBackMod_BlueDmgIncrement "0"
// knockback of melee attack by Blue team, set 0 to disable
// -
// Default: "1000.0"
GenericMeleeKnockBackMod_BlueKnockBack "1000.0"
// set this msg to empty if u dont want knockback msg, {attacker} and {victim} will be replaced to name of them
// -
// Default: "{attacker} knocked {victim} back"
GenericMeleeKnockBackMod_KnockBackMsg "{attacker} knocked {victim} back"
// sound of KnockBack, set to "" string to disable
// -
// Default: "weapons/irifle/irifle_fire2.wav"
GenericMeleeKnockBackMod_KnockBackSound "weapons/irifle/irifle_fire2.wav"
// list of melee weapon that will occur knockback and damage increment, separate weapon` name with ;
// -
// Default: "weapon_knife;weapon_crowbar;weapon_stunstick;weapon_amerknife;weapon_spade"
GenericMeleeKnockBackMod_MeleeWeaponList "weapon_knife;weapon_crowbar;weapon_stunstick;weapon_amerknife;weapon_spade"
// damage increment of melee attack by Red team
// -
// Default: "0"
GenericMeleeKnockBackMod_RedDmgIncrement "0"
// knockback of melee attack by Red team, set 0 to disable
// -
// Default: "1000.0"
GenericMeleeKnockBackMod_RedKnockBack "1000.0"
// this should be 0 if knockback sound is one of default game sound
// -
// Default: "1"
GenericMeleeKnockBackMod_SoundAutoDownload "1"
// damage increment of melee attack by Unassigned team
// -
// Default: "0"
GenericMeleeKnockBackMod_UnassignedDmgIncrement "0"
// knockback of melee attack by Unassigned team, set 0 to disable
// -
// Default: "1000.0"
GenericMeleeKnockBackMod_UnassignedKnockBack "1000.0"
// plugin info cvar
// -
// Default: "1.0.0.8"
GenericMeleeKnockBackMod_version "1.0.0.8"
if plugin has updated and it`s cfg file has changed, you should remove old one and regenerate cfg file
Known Bugs & Limits Of the Mod
nothing for yet
Special Thanks To
i want to say thanks to these guys
- DJtsunami and psychonic for made SDKHooks2
Change Log
all the date`s format is y/m/d
Code:
update at 2011 5 11(ver 1.0.0.8)
- added cvar for auto sound download cfg and knockback msg
update at 2011 5 10(ver 1.0.0.7)