Raised This Month: $100 Target: $400
 25% 

Head Hunter SmokeGrenade v1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-29-2009 , 12:23   Head Hunter SmokeGrenade v1.5
Reply With Quote #1

Description:
This plugin turns the Smoke Grenade into a Head Hunter grenade, it will track the players head and if it touches it! HEADSHOT!
When the impact times will go out the grenade will destroy itself turning into scrap of metal.

Modules:
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>


Cvars:
Code:
smhdh_distance_head_cut    100.0 // distance when the nade will have super-speed to cut the head
smhdh_distance_sense         400.0 // distance when the nade will sense a player
smhdh_distance_owner_head_cut  10.0 // distance when the nade will cut the owner head (only works when ignore_owner is 0!)
smhdh_impact_times            8 // Impact times before the nade desintegrates

smhdh_color_red                 0 // Red color effect
smhdh_color_green              214 // Green color effect
smhdh_color_blue                98 // Blue color effect

smhdh_velocity_correction    150.0 // Velocity added to the nade when targeting a player (x,y axis)
smhdh_height_correction      25.0  // Velocity added to the nade when targeting a player (z axis)[height]
smhdh_velocity_add             50.0  // Velocity correction (will work when the nade has low speed)
smhdh_velocity_border         200.0 // Velocity border correction (if nade speed is under this the speed will be accelerated)
smhdh_velocity_aim_for_head 800.0 // Super-velocity added to the nade when getting near the head
    
smhdh_hit_damage            500.0  // Damage when hitting a head
smhdh_remove_time           60.0  // Seconds after the nade will be removed
    
smhdh_ignore_friendly 1 // Ignore friendly (teammates can't be killed by nade)
smhdh_ignore_owner 1 // Ignore owner (owner can't be killed by nade)

smhdh_effects 1 // Plugin effects
Useful links:
Servers using this plugin

Movie:
http://www.youtube.com/watch?v=YF7i0F0_dz8

To do:
- Make the grenades shootable (kinetics/damage)

Changelog:
PHP Code:
V1.5 optimized the code a bitmade the line of sight function work better
V1.4 
fixed the crazy velocity bugadded time remove
V1.3 
made the plugin more customizable
V1.2 
added nade acceleration when nade is too slow
V1.1 
fixed weird bug
V1.0 
initial release 
Attached Files
File Type: sma Get Plugin or Get Source (head_hunter_smokegrenade.sma - 3937 views - 15.4 KB)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-12-2009 at 20:11. Reason: Readded the plugin
ot_207 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-29-2009 , 12:29   Re: Head Hunter SmokeGrenade
Reply With Quote #2

Sounds funny, gonna try it later.

Can you say what is this ?
PHP Code:
const DMG_CS_BULLETS_KNIFE        =        (<< 12 << 0
__________________
xPaw is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-29-2009 , 12:29   Re: Head Hunter SmokeGrenade
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
Sounds funny, gonna try it later.

Can you say what is this ?
PHP Code:
const DMG_CS_BULLETS_KNIFE        =        (<< 12 << 0
A constant
Edit: LoL , the on-line compiler doesn't like predefined constants. Added new in front
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 08-29-2009 at 12:34.
ot_207 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-29-2009 , 12:37   Re: Head Hunter SmokeGrenade
Reply With Quote #4

Why don't you write something like : const DMG_KNIFE = ( DMG_NEVERGIB | DMG_BULLET ); you have defines, use it.
__________________
Arkshine is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-29-2009 , 12:51   Re: Head Hunter SmokeGrenade
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Why don't you write something like : const DMG_KNIFE = ( DMG_NEVERGIB | DMG_BULLET ); you have defines, use it.
True. I'll update later.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 12:52   Re: Head Hunter SmokeGrenade
Reply With Quote #6

Wow man, you have good ideas and... release a lot of good things in a short time...

GJ, i think i will use it in a future server.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-29-2009 , 12:53   Re: Head Hunter SmokeGrenade
Reply With Quote #7

Quote:
Originally Posted by Alucard^ View Post
Wow man, you have good ideas and... release a lot of good things in a short time...

GJ, i think i will use it in a future server.
Thanks
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
mplayerexe
Senior Member
Join Date: Dec 2008
Old 08-29-2009 , 14:13   Re: Head Hunter SmokeGrenade
Reply With Quote #8

Add a picture, or a video
__________________
mplayerexe is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-29-2009 , 14:23   Re: Head Hunter SmokeGrenade
Reply With Quote #9

I've tested, it's a bit weird. Hm.
__________________
Arkshine is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-29-2009 , 16:19   Re: Head Hunter SmokeGrenade
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
I've tested, it's a bit weird. Hm.
I know it's a bit weird but it is also fun .
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
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 00:08.


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