AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Deagle Nail Launcher [UPDATED] (https://forums.alliedmods.net/showthread.php?t=80857)

tuty 11-22-2008 16:04

Deagle Nail Launcher [UPDATED]
 
8 Attachment(s)
Deagle Nail Launcher
by tuty
version 2.8


Description:

- With this plugin , if you have in hand a deagle pistol, you can throw nails on enemys and kill him and that is give you frags.

Credits:

PHP Code:

/* Credits
* -------------

*    () VEN 
*    () KleeneX
*    () Alka
*    () Anakin
*/ 



Changelog:

PHP Code:

/* Changelog
* --------------
*
* Version 2.3 
* --------------
*
* - first release
*
* Version 2.4
* --------------
*
* - added 2 cvars for bonus money and loose money when you kill a teammate
*
*
* Version 2.5
* -------------- 
*
* - optimized code
* - added a cool effect if you make damage to someone or yourself
* - added a blood cool efect :D to be more funny when damage someone
*
* Version 2.6
* --------------
*
* - optimized
* - added a smoke efect when explosion is over

* Version 2.7+
*
* - added 2 cvars
* - optimized x2
* - fakemeta only
*
* Version 2.8
* -re-wrote my shitty code
*/ 


How to use:

- Is simple. If you have the deagle pistol in your hand, press mouse2 or attack2 to launch a nail.

Cvars:

- nail_enable 1- on/0-off
- nail_admin_only 0 - off/ set this to 1 if you want to change from admin only
- nail_speed 300 - set the nail speed run
- nail_delay 3.0
- set time until the next nail can be throwed
- nail_damage_radius 100 - set the nail explosion damage
- nail_damage 50 - set the nail damage when hit someone
- nail_trail_width 5 - set the trail width
-
nail_trail_colormode 1 - 0 - is grey , normal nail trail color, and 1 - is team color. CT - blue trail and T - red trail
-
nail_kill_money_bonus 1000 - gives you a money bonus when you kill someone with nail xD
-
nail_tk_loose_money 5000 - loose money when friendlyfire is on and you killed a teammate :P

-
nail_fragbonus 3 - frags bonus when you kill some1 with nail
-
nail_loosefrags 5 - loose frags when you kill a teammate :)))

Modules:

- fakemeta
- cstrike
- engine
- fun

Files:

- Put the spike1.wav sound into cstrike/sound/misc directory
- Put the nail.mdl model into cstrike/models directory

Attention!

- If you have version 1.7.6d of amxx you must include fakemeta_util.inc :)
-
If friendlyfire is set to 1 you can die with your own nail!
- With your nail you can break breakable doors or something // removed! useless
- Added a cool effect when you hurt yourself or take someone damage
- Added a smoke effect when nail explosion is over
- Engine removed! :)
- Added 2 cvars :P
- At round end the nail will be removed :)

Screenshots:



crazyeffect 11-22-2008 16:38

Re: Deagle Nail Launcher
 
First Post... :D

Nice plugin :P
Good idea!
Only i personally would make it only 1-2 nails and 25 damage when hit 50 damage when explode:D

tuty 11-22-2008 16:40

Re: Deagle Nail Launcher
 
set this on cvars

10x :mrgreen::mrgreen:

anakin_cstrike 11-22-2008 16:49

Re: Deagle Nail Launcher
 
1 Attachment(s)
Nice.
Change engine to fakemeta . You can use this .inc to get the functions.

Also:
PHP Code:

if(get_user_team(id) == 1)
            {
                
                
write_byte(255);
                
write_byte(0);
                
write_byte(0);
            }
            else if(
get_user_team(id) == 2)
            {
                
                
write_byte(0);
                
write_byte(0);
                
write_byte(255);
                
            }
            else 
            {
                
                
write_byte(211);
                
write_byte(211);
                
write_byte(211);
                
            } 

->
PHP Code:

new rgb;
            switch( 
get_user_team(id) )
            {
                case 
1:
                {
                    
255;
                    
0
                    
0;
                }
                case 
2:
                {
                    
0;
                    
0
                    
255;
                }
                default:
                {
                    
211;
                    
211
                    
211;
                }
                
write_byte(r);
                
write_byte(g);
                
write_byte(b);
            } 


YamiKaitou 11-22-2008 17:01

Re: Deagle Nail Launcher
 
Remove the rar file and upload it as a zip

crazyeffect 11-22-2008 17:02

Re: Deagle Nail Launcher
 
Quote:

Remove the rar file and upload it as a zip
Why he needs to?

YamiKaitou 11-22-2008 17:05

Re: Deagle Nail Launcher
 
http://forums.alliedmods.net/showthread.php?t=21956

Quote:

Originally Posted by Rules
For packages, use only zip, [tar.]gz, [tar.]bz2. Plugins using other compression formats should not be approved, this includes RAR and 7z.


Since I just noticed it, I am going to start enforcing it

crazyeffect 11-22-2008 17:16

Re: Deagle Nail Launcher
 
1 Attachment(s)
Hope i help with this:

Here is the "required files.zip" file :D

Fry! 11-22-2008 17:37

Re: Deagle Nail Launcher
 
Nice I like it. :)

tuty 11-23-2008 06:34

Re: Deagle Nail Launcher
 
New version added:crab::crab::crab: Check the first:mrgreen::mrgreen: post


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

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