AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Head Hunter SmokeGrenade v1.5 (https://forums.alliedmods.net/showthread.php?t=102009)

ot_207 08-29-2009 11:23

Head Hunter SmokeGrenade v1.5
 
1 Attachment(s)
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 


xPaw 08-29-2009 11:29

Re: Head Hunter SmokeGrenade
 
Sounds funny, gonna try it later.

Can you say what is this ? :)
PHP Code:

const DMG_CS_BULLETS_KNIFE        =        (<< 12 << 0


ot_207 08-29-2009 11:29

Re: Head Hunter SmokeGrenade
 
Quote:

Originally Posted by xPaw (Post 916640)
Sounds funny, gonna try it later.

Can you say what is this ? :)
PHP Code:

const DMG_CS_BULLETS_KNIFE        =        (<< 12 << 0


A constant :mrgreen:
Edit: LoL :|, the on-line compiler doesn't like predefined constants. Added new in front :|

Arkshine 08-29-2009 11:37

Re: Head Hunter SmokeGrenade
 
Why don't you write something like : const DMG_KNIFE = ( DMG_NEVERGIB | DMG_BULLET ); you have defines, use it.

ot_207 08-29-2009 11:51

Re: Head Hunter SmokeGrenade
 
Quote:

Originally Posted by Arkshine (Post 916652)
Why don't you write something like : const DMG_KNIFE = ( DMG_NEVERGIB | DMG_BULLET ); you have defines, use it.

True. I'll update later.

Alucard^ 08-29-2009 11:52

Re: Head Hunter SmokeGrenade
 
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.

ot_207 08-29-2009 11:53

Re: Head Hunter SmokeGrenade
 
Quote:

Originally Posted by Alucard^ (Post 916667)
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 :mrgreen:

mplayerexe 08-29-2009 13:13

Re: Head Hunter SmokeGrenade
 
Add a picture, or a video :crab::crab:

Arkshine 08-29-2009 13:23

Re: Head Hunter SmokeGrenade
 
I've tested, it's a bit weird. Hm.

ot_207 08-29-2009 15:19

Re: Head Hunter SmokeGrenade
 
Quote:

Originally Posted by Arkshine (Post 916762)
I've tested, it's a bit weird. Hm.

I know it's a bit weird but it is also fun :).


All times are GMT -4. The time now is 23:32.

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