☞Description
»Plugin was made specificly for Deathrun mod type of servers, but it can be used however and wherever you seem suitable, it has 6 different type of knives, with unique skins and abilities. The limits of the abilities are complitely customizable, so you can adjust them by your own preference.
☞Images |
☞Cvars
DR cvars
Code:
dr_knives_prefix "Server"
//it will show your desired prefix in the messages from the plugin.
Knife cvars by default:
dr_butterfly_gravity "0.5"
//(determines the gravity ability from Knife: Butterfly, the default player gravity is 1.0, to change you need to have a float number)
dr_maddie_damage "1.5"
//(determines the damage ability from Knife: Maddie, it works as multiplier, so the damage is increased by 1.5* (50%), to change you need to have a float number)
dr_int_visiblity "35"
//(determines the invisibility ability from Knife: Introvert, it goes from 255 (max visibility) to 0 (max invisibility), to change you need to have a still number)
dr_hopper_jumps "1"
//(determines the amount of jumps from knife: Hopper, you can increase the extra jumps with no limits, to change you need to have a still number)
dr_swift_speed "600.0"
//(determines the speed ability from knife: Swift, the default player speed is 250.0, to change you need to have a float number)
dr_jeff_gravity "0.6"
//(determines teh gravity ability from knife: Jefferson, the default player gravity is 1.0, to change you need to have a float number)
dr_jeff_speed "530.0"
//(determines the speed ability from knife: Jefferson, the default player speed is 250.0, to change you need to have a float number)
dr_header_info "1"
//change between 1,2 and 3
//it will show a line below the title menu with description by your liking
//1. will show Player's current knife,
//2. will show the Time limit for the menu in secconds,
//3. will show Custom message, which you can edit
dr_menu_limit "1"
//change between 1 and 0
//if at 1. will set a time limit for opening the menu, so players cannot spam & switch
dr_menu_time "5"
//if dr_menu_limit is 1
//it will count in secconds the time needed to pass between every knife change before the player can use the menu
* CVARS *
☞Custmizations inside source
»From the plugin you can customize several options:
»For a custom header message with cvar dr_header_info:
Code:
Line 28: new const szCustomHeader[] = "Custom Header Message"
»To change the sound of when player chooses a knife from menu
Code:
Line 30: new const szSoundSuccess[] = "dr_knives/success.wav"
»To change the sound of when player don't have access to menu
Code:
Line 29:new const szSoundDeny[] = "dr_knives/denied.wav"
»To change the sound of when player does an extra jump
Code:
Line 31:new const szSoundJump[] = "dr_knives/jump.wav"
»To change the color of the screenfade effect when player picks a knife
»The knife skins go from 1 to 6 whichever line is the model, so if you want to replace Butterfly knife's model for example, just change the pathing to the first line of the const: "models/dr_knives/Butterfly/v_butterfly.mdl" to whatever you want.
☞Disclaimer
»This is my first code i publish, as far as my knowledge it's the best way to form it. If you have any suggestions for improvements i should made, i will try and fulfill them if they are within my ability. Updates are for sure to be expected.
You should try to post something better or different.
Customization inside the source isn't really customization. People shouldn't have to edit the source in order to do that, that's hardcoding. Cvars/ini file is the way to go.
I understand it's your first code, but this has no chance of being approved in 2021. You should keep learning and post something unique and worth using over other plugins.