Knife Mod+
2 Attachment(s)
I'm not sure if a recode has been done like this or not. Basically I took Spunko's Knife Mod and made it so you had to be dead to choose a new knife. Also I added another knife option "Ninja Knife". I thought people would enjoy the new features. This is also my first submission, be it a recode or not. Go easy on me. :)
I'd like to thank Spunko for all his hard work. Knife Mod+ (Recode/Addon) - It changes the models of the knife (six models including default knife). - Each knife has an ability (see below) - Change the models via menu with a chat command: /knife - It saves the data of the model you choose (so if you leave the server and come in again you will have the model you chose before). - It prints a message with help every 8 minutes. Knife Abilities 1. Machete (More Damage/Low Speed) 2. Bak Knife (No Footsteps) 3. Pocket Knife (High Speed) 4. Butcher Knife (Low Gravity) 5. Default Knife (Health Regeneration) 6. Ninja Knife (Cloaking Ability) Install - Unzip the file in "cstrike" folder - Add "knife_mod_plus.amxx" without quotes in plugins.ini Modules Required < Fun > < Engine > Commands For Admins: km_highspeed 340 (sets the speed for Pocket Knife) km_lowspeed 170 (sets the speed for Machete) km_addhealth 3 (sets the health you will gain with Default Knife) km_maxhealth 75 (sets the healt you can reach when healing D-knife) km_damage 2 (damage multiplier for Machete) km_lowgravity 400 (sets the low gravity) km_invis 75 (set the visibility percentage, 0-255, 255 fully visible) For Players: /knife Write it in chat for the menu to change the knifes You must be dead in order to access the menu. Credits Damage multiplier and log_kill code - Nightscream Plugin: He Damage Multiplier Speed code - v3x Plugin: Various Weapon Speeds Healing code - Knife Healing Thanx to "SweatyBanana" for the client_putinserver suggestion. Original Plugin - Knife Mod |
Re: Knife Mod+
Just a note, I know that the ninja knife is actually a set of claws. But yea, this is called Knife Mod.. Not claw mod.. ;p
|
Re: Knife Mod+
It's not worth to post as new plugins with the changes you have done. It's 99% the same code. You should have post in the original plugin thread.
As something really new, you could add the possibility to customize knifes with a file. So you can set the number of knifes you want, the models you want, the abilities you want etc. |
Re: Knife Mod+
Quote:
-Dras |
Re: Knife Mod+
Right arkshine.
Anyway, The code isn't perfectly: 1. PHP Code:
2. Code:
if (is_user_alive(id) == 1){(optionaly)3. http://forums.alliedmods.net/showthread.php?t=46364 |
Re: Knife Mod+
ah, as far as the indents go, my bad, lol. also with the
PHP Code:
PHP Code:
And im not sure I understand your 3rd suggestion, are you basically saying you hate my menu? It was part of the original code, but I'll see If I can attempt to comprehend what it is exactly your suggesting with that link. Thanks for the support/tips guys, I'm pretty much a code noob when it comes to this sorta thing. -Dras |
Re: Knife Mod+
Also, I'm having an issue I just noticed with the new knife, I put a print in there to show up when you first switch to the new knife, however it also appears two of the other knives. The first option, and the third option I believe(or the Machete and the Pocketknife). I have absolutely -no- clue why. lol. here the new knife code.
PHP Code:
|
Re: Knife Mod+
Quote:
PHP Code:
|
Re: Knife Mod+
You actually don't need the == at all on is_user_alive. Either use if(is_user_alive(id) ) or if(!is_user_alive(id) ) since it can only be 1 or 0. The ! means that it checks if he's not alive.
What he meant by the link is to use those kind of menu's instead of doing it as Spunko did in his original code. Code:
if(Weapon != CSW_KNIFE || knife_model[id] == 5) |
Re: Knife Mod+
Quote:
If I put brackets on it wouldn't close it off from the code it relies on to work? PHP Code:
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. |
| All times are GMT -4. The time now is 20:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.