Raised This Month: $12 Target: $400
 3% 

Knife Models [XP System & Skills Support]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   HamletEagle (36)
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-05-2017 , 13:03   Knife Models [XP System & Skills Support]
Reply With Quote #1




Description
  • This plugin adds a menu from where you can choose different knife skins. It also has an API which allows to create sub-plugins, such as knife skills/abilities.

Commands
  • /knife -- opens the knife menu
  • crxknives_select <knife id> -- attempts to select the given knife

Cvars
  • km_open_at_spawn -- if enabled, the knife menu will open at spawn if the player hasn't yet chosen a knife (the menu won't open for players that don't have access for any knife according to their admin flags)
  • km_save_choice -- if enabled, the selected knife will be remembered via SteamID after you leave the server
  • km_only_dead -- if enabled, players won't be able to change their knife while they're alive
  • km_select_message -- whether or not to display a chat message with the knife name when a knife is selected
  • km_knife_only_skills -- this cvar has no effect in the plugin itself, its purpose is to be used from sub-plugins in order to determine whether the knife skills will be active only when the player holds a knife (1) or with any weapon (0)
  • km_admin_bypass -- if enabled and a knife has both FLAG and XP or LEVEL attributes set, the player will get access to that knife if he has the requried FLAG - the XP and LEVEL requirements will be ignored

Adding knives
  • The knives can be added in the file configs/KnifeModels.ini by putting the knife name on a new line in square brackets, for example [Cool Knife].
  • Below this line you can add the knife attributes. The following attributes are available in the main plugin:
    • V_MODEL -- path to the v_ model
    • P_MODEL -- path to the p_ model
    • FLAG -- admin access flag
    • DEPLOY_SOUND -- sound when you deployy the knife
    • HIT_SOUND -- sound when you hit a player with the knife
    • HITWALL_SOUND -- sound when you hit a wall with the knife
    • SLASH_SOUND -- sound when you swing the knife
    • STAB_SOUND -- sound when you stab a player with the knife
    • SELECT_SOUND -- sound when selecting the knife
    • SELECT_MESSAGE -- chat message when selecting the knife (you can add this attribute multiple times if you want to show more than one message)
    • LEVEL -- required level (requires OciXCrom's Rank System)
    • SHOW_RANK -- if set to 1, it will show the rank name instead of the level number (requires OciXCrom's Rank System)
    • XP -- required XP (requires OciXCrom's Rank System)
  • Bear in mind that all attributes are optional.
  • Here's an example knife with all attributes included:

    PHP Code:
    [Crom Knife]
    V_MODEL models/crom_knife/v_crom_knife.mdl
    P_MODEL 
    models/crom_knife/p_crom_knife.mdl
    FLAG 
    b
    DEPLOY_SOUND 
    crom_knife/knife_deploy1.wav
    HIT_SOUND 
    crom_knife/knife_hit1.wav
    HITWALL_SOUND 
    crom_knife/knife_hitwall1.wav
    SLASH_SOUND 
    crom_knife/knife_slash1.wav
    STAB_SOUND 
    crom_knife/knife_stab.wav
    SELECT_SOUND 
    crom_knife/knife_select.wav
    SELECT_MESSAGE 
    You have &x03selected &x01the knife &x04Crom Knife
    LEVEL 
    15
    SHOW_RANK 
    1
    XP 
    3000 

Skills/Abilities
  • There are no skills/abilities added in the main plugin. For that purpose, you need to download additional sub-plugins.
  • The sub-plugin that contains basic skills can be found here.
  • You can find other sub-plugins here.

Additional information and download link



__________________

Last edited by OciXCrom; 04-17-2020 at 15:14.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 


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 17:39.


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