PDA

View Full Version : He-Grenade Game 1.1


baneado
03-28-2013, 09:58
This is my first public plugin, so get play and be fun!

Description
This is a simple mod that you can play throwing he-grenades to kill enemies. The grenades automatic gives you when you throw it. This gameplay also has levels, so when you kill an enemy you can get a extra-weapon that you can configure in plugin customization.
When time runs out or player arrives to the max level, round ends and show the best player.
This plugin also include a deathmatch mode for more fun.
Note: This plugin don't show annoying grenades radio messages, awesome for this gameplay

Cvars
hgg_roundtime <number> - Set a round time in seconds (Default: 400)
hgg_wpn_ammo <0/1> - Disable or enable ammo for extra weapons (Default: 0)
hgg_spawndelay <number> - Set spawn delay in seconds (Default: 5)
hgg_spawnprotection <number> - Set spawn protection in seconds (Default: 5)

Recommended plugins
http://forums.alliedmods.net/showthread.php?p=619655
https://forums.alliedmods.net/showthread.php?t=204759

Changelog
v1.0
- Public release

v1.0.1
- Removed: fm_ stocks (ConnorMcLeod suggestion)
- Added: Game Name Changer

v1.1
- Fixed: bugs when round starts/ends, including timeCredits
- Me (RauliTop)
I used some code of Zombie Plague (some blocking messages) and Gungame (respawn)

Sorry bad english...

FanatikSVK
03-28-2013, 14:15
It seems to be pretty good, of course, Good job

ConnorMcLeod
03-28-2013, 15:52
Remove any fm_*** thing, use real natives instead, it is more efficient.

TimooCS
03-30-2013, 11:49
Good Job

baneado
03-30-2013, 15:34
It seems to be pretty good, of course, Good job
Thanks, yes it's very pretty (for me)
Remove any fm_*** thing, use real natives instead, it is more efficient.
ok I don't know it, I will change it in the next update
Good Job
Thankss :D

baneado
04-01-2013, 13:58
Updated v1.0.1
- Removed: fm_ stocks (ConnorMcLeod suggestion)
- Added: Game Name Changer

Roccoxx
04-03-2013, 19:58
baneado is gay right :)

good job bro

baneado
04-04-2013, 15:09
baneado is gay right :)

good job bro

of course...

good joke jajaja

Thanks :D

jingojang
04-13-2013, 13:24
Suggested maps?

Unkolix
04-13-2013, 13:26
Suggested maps?

I believe aim maps.

tonykaram1993
04-14-2013, 01:21
register_forward(FM_GetGameDescription, "fw_GetGameDescription")

Does altering the game description still work? I read somewhere here on the forums that it was broken with the 2013 HLDS update. Correct me if I am wrong.

baneado
04-14-2013, 14:05
Updated v1.1
Fixed: bugs when round start/ends, including time

Balck
07-13-2013, 20:55
Gj man :) like it

Winchester90
07-19-2013, 13:43
Its pretty but i think that you must put more bullets. (Pro speaker english) :PP

baneado
07-19-2013, 15:00
Gj man :) like it

thanks :D

Its pretty but i think that you must put more bullets. (Pro speaker english) :PP

you can do it with hgg_wpn_ammo 1

ConnorMcLeod
07-20-2013, 08:33
Better to return -1 in Spawn forward then removing the entity.
Also, you don't need to remove all those entity, see in followinf example which ones are needed.
End, you could use a Trie for those classes.

new Trie:g_tRemoveEntClasses;
new g_iFhDispatchSpawn;

public plugin_precache()
{
new szRemoveEntClasses[][] =
{
"func_bomb_target", "info_bomb_target", // de_
"func_hostage_rescue", // cs_
"func_escapezone", // es_
"func_vip_safetyzone", // as_
};
g_tRemoveEntClasses = TrieCreate();
for(new i; i<sizeof(szRemoveEntClasses); i++)
{
TrieSetCell(g_tRemoveEntClasses, szRemoveEntClasses[i], 1);
}

g_iFhDispatchSpawn = register_forward(FM_Spawn, "OnDispatchSpawn", 0);
}

public OnDispatchSpawn( ent )
{
new classname[32];
pev(ent, pev_classname, classname, charsmax(classname));
if( TrieKeyExists(g_tRemoveEntClasses, classname) )
{
forward_return(FMV_CELL, -1);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}

public plugin_init()
{
unregister_forward(g_iFhDispatchSpawn);
TrieDestroy(g_tRemoveEntClasses);
}