The skills can be added in the main plugin's configuration file - configs/KnifeModels.ini in the same way like you would add the rest of the knife settings.
Bear in mind that by default the skills are active only while the player is holding the knife. If you want to make them active for every weapon, simply change the cvar km_knife_only_skills to "0".
The following skills are available in this plugin:
GRAVITY = <value> -- changes the player's gravity
The values are the same ones that are used with the "sv_gravity" cvar, which means that 800 is default gravity and every number below this will decrease the player's gravity and make you jump higher, while 0 completely disables the gravity.
SPEED = <value> -- changes the player's speed
The default speed when using a knife is 250.
Bear in mind that the maximum allowed speed can be limited by the server cvar "sv_maxspeed" and the client cvars "cl_forwardspeed", "cl_sidespeed" and "cl_backspeed".
DAMAGE = <value> -- changes the amount of damage that the player deals
You can use +, -, increase the damage by a certain percentage, etc.
Examples:
DAMAGE = +25% will increase the damage by 25%
DAMAGE = +25 will add 25 to the damage
DAMAGE = *2 will increase the damage twice
DAMAGE = 10 will make each hit deal exactly 10 damage
DAMAGE = -5% will decrease the damage by 5%
DAMAGE = /2 will decrease the damage by half
PROTECTION = <value> -- changes the amount of damage that the player receives
Works the same way as "DAMAGE", e.g. a value of "-50%" will reduce the damage received by half.
SILENT_STEPS = 1 -- enables silent footsteps for the player
HEALTH_ON_KILL = <health on kill> [maximum health] -- gives health on kill
If you don't specify the maximum health amount, it will be 100 by default.
ARMOR_ON_KILL = <armor on kill> [maximum armor] -- gives armor on kill
If you don't specify the maximum armor amount, it will be 100 by default.
MONEY_ON_KILL = <money on kill> [maximum money] -- gives money on kill
If you don't specify the maximum money amount, it will be 16000 by default.
GLOW = <red> <green> <blue> [brightness] [fx mode] [render mode] -- makes the player glow
Only the first 3 parameters are mandatory.
If you don't specify a brightness amount, it will be 40 by default.
FX mode has a default value of 19.
Render mode has a default value of 0.
Examples:
GLOW = 255 0 0 will give a full red glow
GLOW = 0 0 0 40 will make the player transparent
Here's an example knife with all of this plugin's attributes included:
На данном сайте используются файлы cookie, чтобы персонализировать контент и сохранить Ваш вход в систему, если Вы зарегистрируетесь.
Продолжая использовать этот сайт, Вы соглашаетесь на использование наших файлов cookie.