Raised This Month: $32 Target: $400
 8% 

Basic Knife Skills


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-12-2019 , 16:53   Basic Knife Skills
Reply With Quote #1



Basic Knife Skills

Description
  • This plugin is an addon for Knife Models that allows you to add special skills to your knives.

Information
  • 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.

Available skills
  • 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:

PHP Code:
[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 
Additional information and download link



__________________

Last edited by OciXCrom; 11-09-2019 at 15:26.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DevilBoy.eXe
Member
Join Date: Mar 2017
Location: Romania
Old 02-13-2019 , 07:46   Re: Basic Knife Skills
Reply With Quote #2

Next level of knife models for dr servers gj
__________________

DevilBoy.eXe is offline
Send a message via Yahoo to DevilBoy.eXe Send a message via Skype™ to DevilBoy.eXe
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-13-2019 , 09:07   Re: Basic Knife Skills
Reply With Quote #3

Nice job as always
Mabe make it glow depending on teams blue for ct, red for ts, and yellows for bomb carrier!

Multi jump is also a nice skill!

Another sugestion is to make the player screen blink when kill with cvar for colors, like fade out from blue

But its great so far
tarsisd2 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-13-2019 , 09:59   Re: Basic Knife Skills
Reply With Quote #4

Multi jump, blink, etc will be released as separate plugins. This one is only for the well-known basic stuff. The glow is meant to be fully customizable - you can even make the player blink with it, so it doesn't have to be a color.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
grimxxl
Member
Join Date: Dec 2012
Old 02-14-2019 , 09:21   Re: Basic Knife Skills
Reply With Quote #5

crxknives.inc?
grimxxl is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2019 , 10:06   Re: Basic Knife Skills
Reply With Quote #6

Quote:
Originally Posted by grimxxl View Post
crxknives.inc?
Read the first paragraph in the first post. This is not a standalone plugin.
__________________

Last edited by OciXCrom; 02-14-2019 at 10:08.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
grimxxl
Member
Join Date: Dec 2012
Old 02-14-2019 , 10:43   Re: Basic Knife Skills
Reply With Quote #7

I'm aware that it's not a standalone plugin, but couldn't seem to find the .inc in the knife models plugin.

Turns out i haven't updated the original plugin in a while, so it was missing the .inc.
grimxxl is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2019 , 12:30   Re: Basic Knife Skills
Reply With Quote #8

Yup, the new version of Knife Models was released along with this plugin. You must update it in order to use this one, as the API and .inc files are from the new version.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
grimxxl
Member
Join Date: Dec 2012
Old 02-14-2019 , 12:45   Re: Basic Knife Skills
Reply With Quote #9

Figured, also when i got glow enabled i get this:

L 02/14/2019 - 17:16:41: [AMXX] Plugin "crxknives_basic_skills.amxx" failed to load: Plugin uses an unknown function (name "crxknives_get_attribute_str") - check your modules.ini.

Further more does it seems like having speed enabled, allows you to move before freezetime ends.
grimxxl is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2019 , 13:35   Re: Basic Knife Skills
Reply With Quote #10

If you get that error, it means you didn't add the main Knife Models plugin, or at least not the new version.

I'll check about the freeze time.
__________________

Last edited by OciXCrom; 02-15-2019 at 12:41.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode