Raised This Month: $12 Target: $400
 3% 

Super HE Grenades 1.0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   v3x (159)
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 06-01-2006 , 08:24   Super HE Grenades 1.0.2
Reply With Quote #1

Super HE Grenades
By Dark Killer
Version 1.0.2

What is this?
This plugin lets you to buy super HE grenades. Super HE grenades are with higher (1/2 more of the original one!) damage but more expensive (by default).

Cvars
  • amx_supnades
    Avaliable: 1 or 0 only
    Default: 1
    Turn on (1) or off (0) this plugin
  • amx_suphecost
    Avaliable: Any numbers but not bigger than 16000 or lower than or equal to 0.
    Default: 600
    The cost of a super HE grenade
  • suphe_version
    Avaliable: None
    Default: 1.0.2
    Do not change this. This is a cvar which identifies your Super HE Grenades version.
Client Commands
  • say /showprices
    Shows the cost of a super HE grenade
  • say /buyhe
    Buy a super HE grenade
Requirements
Base
AMX Mod X
Modules
Cstrike
Fun

Known Issues
  1. It is a skull, not a grenade, if you got killed by a super he grenade.
To-do list
  1. Fix the bug.
  2. Use PCvars for faster performance.
  3. More configurable.
  4. A cool new grenade model.

Credits
T(+)rget
Helped me with the damage, also the block buy after buy time.

Changelog
1.0.2 - 06-07-2006
Minor update. Just added suphe_version cvar for finding servers which have this plugin easily.
1.0.1 - 07-06-2006
Fixed the buy time bug.
1.0 - 01-06-2006
Initial Release.

See who are using this plugin?

Loved this? Don't forget to +karma!

Downloads +178

It is coming back soon. Version 2.0. A complete rewrite and has a lot new features.
Attached Files
File Type: sma Get Plugin or Get Source (supnades.sma - 10893 views - 6.4 KB)
__________________

Last edited by Dark Killer; 07-26-2007 at 09:36. Reason: To inform others the future update of the plugin
Dark Killer is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-01-2006 , 08:39  
Reply With Quote #2

Well, it would make more sence to leave it a skull because if its an HE grenade then people think that this server is rigged or something because their getting hella frags with HE's
__________________
ThomasNguyen is offline
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 06-01-2006 , 08:42  
Reply With Quote #3

but if it is a skull, it mixes players' minds...

in the source of CS:

Orangutanz (T(+)rget) says:
Code:
// Kill if health too low.
if (params[2] > 0)
pPlayer->v.health = float(params[2]);
else
MDLL_ClientKill(pPlayer);

return 1;
well you die by the HE, so if set_user_health is 0 or less than a MDLL_ClientKill is enforced
__________________
Dark Killer is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-01-2006 , 08:55  
Reply With Quote #4

why do you always neg my karma when im just mentioning something. its like i said your plugin sucked[which i didnt]
__________________
ThomasNguyen is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-01-2006 , 08:57  
Reply With Quote #5

You can do a check on your own to see if the damage you are going to deal is going to kill him and if so make your own death message and silent kill the user.....

Also
Quote:
Using VexdUM (Not Engine!!!) to have a HE grenade death message (as you can see, it is a skull if you got killed by a super he grenade)
VexdUM is AMX not AMXX so don't use it. Also when AMXX 1.75 comes out you won't need engine to send your own deathmsg.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
VEN
Veteran Member
Join Date: Jan 2005
Old 06-01-2006 , 09:56  
Reply With Quote #6

Quote:
Bugs found

You can buy a super HE grenade after buy time
This can be easily solved. Look at my "Buy a Helmet" plugin's source code. I've used CS standard-like method so in game you wouldn't be able to say wheter it's a plugin's or a game mod's action. ;)
VEN is offline
ColdBlood
Senior Member
Join Date: Feb 2006
Location: new york
Old 06-01-2006 , 09:59  
Reply With Quote #7

when i get home ima put this on my server and test it
__________________
ColdBlood is offline
Send a message via AIM to ColdBlood Send a message via Skype™ to ColdBlood
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 06-01-2006 , 10:57  
Reply With Quote #8

Here is a standart kill message:
Code:
#include <engine>//engine needed

public Damage_event(id) {
	new wpn, body, attacker = get_user_attacker(id, wpn, body)
	// Its a Grenade
	if(wpn == 4 && hasHE[attacker])
	{
		new Float:hp = float(get_user_health(id))
		new Float:dmg = float(read_data(2))
		dmg *= 0.5

		new Float:damage =hp - dmg
		kill_player(id,attacker,Float:damage)
	}
}

kill_player(id,attacker,Float:damage){
	set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE)
	fakedamage(id,"trigger_hurt",damage,0)
	if (entity_get_float(id,EV_FL_health) <= 0.0){
		if ( attacker ){
			message_begin( MSG_ALL, get_user_msgid("DeathMsg"))
			write_byte(attacker)
			write_byte(id)
			write_string("name of weapon")// i dont know the name of he grenade, this change the skull icon to another icon
			message_end()
		}

	}
}
schnitzelmaker is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-01-2006 , 14:44  
Reply With Quote #9

You not really doing double damage, your just adding 1/2 of the original damage.
Code:
dmg *= 0.5
Code:
                                new iHealth = get_user_health(victim)         new newDamage = floatround((float(iHealth) - float(read_data(2))))         if(newDamage < 1)         {             user_kill(victim, 1)             set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE)             message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0, 0, 0}, 0)             write_byte(id)             write_byte(victim)             write_byte(0)                      write_string("hegrenade")             message_end()         } else {             set_user_health(victim, newDamage)         }

Code:
cs_get_user_buyzone(id) // for buyzone
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-01-2006 , 18:07  
Reply With Quote #10

isn't it just like my he damage multiplier but only with buy?
__________________
- Bye bye!
nightscreem 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 19:58.


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