Category: Admin Commands
Join Date: Oct 2013
Basic Knife Skills
- This plugin is an addon for Knife Models that allows you to add special skills to your knives.
☄ Available skills
- How is this plugin better than other similar ones?
- The skills and values are not hardcoded in the plugin and they can be changed and modified at any time via the configuration file.
- You can add an unlimited amount of knives and skills for them.
- You can set different values for each knife, rather than using the same one for all of them.
- You can combine all skills at once, use only one or multiple ones for the same knife.
- The skills in this plugin aren't the only ones you can use - you can also add other sub-plugins that will add even more skills. You can even create your own ones.
- 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.
- 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.
- 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:
☄ Additional information and download link
[The Red-Glowing Knife of Death]
V_MODEL = models/my_knives/v_skill_knife.mdl
GRAVITY = 400
SPEED = 325
DAMAGE = +25%
PROTECTION = /2
SILENT_STEPS = 1
HEALTH_ON_KILL = 15
ARMOR_ON_KILL = 30
MONEY_ON_KILL = 1000
GLOW = 0 255 0
Last edited by OciXCrom; 11-09-2019 at 16:26.