AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Basic Knife Skills (https://forums.alliedmods.net/showthread.php?t=314299)

OciXCrom 02-12-2019 16:53

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

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

DevilBoy.eXe 02-13-2019 07:46

Re: Basic Knife Skills
 
Next level of knife models for dr servers gj

tarsisd2 02-13-2019 09:07

Re: Basic Knife Skills
 
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

OciXCrom 02-13-2019 09:59

Re: Basic Knife Skills
 
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.

grimxxl 02-14-2019 09:21

Re: Basic Knife Skills
 
crxknives.inc?

OciXCrom 02-14-2019 10:06

Re: Basic Knife Skills
 
Quote:

Originally Posted by grimxxl (Post 2639599)
crxknives.inc?

Read the first paragraph in the first post. This is not a standalone plugin.

grimxxl 02-14-2019 10:43

Re: Basic Knife Skills
 
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.

OciXCrom 02-14-2019 12:30

Re: Basic Knife Skills
 
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.

grimxxl 02-14-2019 12:45

Re: Basic Knife Skills
 
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.

OciXCrom 02-14-2019 13:35

Re: Basic Knife Skills
 
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.


All times are GMT -4. The time now is 06:32.

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