Raised This Month: $95 Target: $400
 23% 

Deagle Nail Launcher [UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 11-22-2008 , 17:04   Deagle Nail Launcher [UPDATED]
Reply With Quote #1

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

-
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
- At round end the nail will be removed

Screenshots:


Attached Thumbnails
Click image for larger version

Name:	deagle_nail1.jpg
Views:	3333
Size:	9.2 KB
ID:	33935   Click image for larger version

Name:	deagle_nail5.jpg
Views:	7846
Size:	87.2 KB
ID:	33939   Click image for larger version

Name:	deagle_nail6.jpg
Views:	7663
Size:	44.4 KB
ID:	33940   Click image for larger version

Name:	deagle_nail7.jpg
Views:	5569
Size:	23.3 KB
ID:	33941   Click image for larger version

Name:	cs_assault0049.jpg
Views:	11853
Size:	87.0 KB
ID:	33975  

Click image for larger version

Name:	222.jpg
Views:	5179
Size:	35.0 KB
ID:	33996  
Attached Files
File Type: zip required stuff.zip (5.4 KB, 2717 views)
File Type: sma Get Plugin or Get Source (deagle_nail_launcher_v2_8.sma - 729 views - 10.9 KB)
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 11-29-2015 at 18:51. Reason: updated
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-22-2008 , 17:38   Re: Deagle Nail Launcher
Reply With Quote #2

First Post...

Nice plugin
Good idea!
Only i personally would make it only 1-2 nails and 25 damage when hit 50 damage when explode
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 11-22-2008 , 17:40   Re: Deagle Nail Launcher
Reply With Quote #3

set this on cvars

10x
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-22-2008 , 17:49   Re: Deagle Nail Launcher
Reply With Quote #4

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);
            } 
Attached Files
File Type: inc fakeengine.inc (2.4 KB, 287 views)
__________________


Last edited by anakin_cstrike; 11-22-2008 at 17:55.
anakin_cstrike is offline
Old 11-22-2008, 17:57
crazyeffect
This message has been deleted by crazyeffect.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-22-2008 , 18:01   Re: Deagle Nail Launcher
Reply With Quote #5

Remove the rar file and upload it as a zip
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-22-2008 , 18:02   Re: Deagle Nail Launcher
Reply With Quote #6

Quote:
Remove the rar file and upload it as a zip
Why he needs to?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-22-2008 , 18:05   Re: Deagle Nail Launcher
Reply With Quote #7

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-22-2008 , 18:16   Re: Deagle Nail Launcher
Reply With Quote #8

Hope i help with this:

Here is the "required files.zip" file
Attached Files
File Type: zip required stuff.zip (5.4 KB, 207 views)
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-22-2008 , 18:37   Re: Deagle Nail Launcher
Reply With Quote #9

Nice I like it.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 11-23-2008 , 07:34   Re: Deagle Nail Launcher
Reply With Quote #10

New version added Check the first post
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Reply


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 14:23.


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