View Single Post
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-03-2008 , 08:13   Re: Nade Modes (Nomexous)
Reply With Quote #2

Known problems:
1. The plugin doesn't work with plugin modified nades that instead of using pev_dmgtime, use set_task() to detonate the nade.

Good plugins that can be used with my plugin:
Nade Ammo Types
Nade Giver
FrostNades
NapalmNades
Teleport Smoke Grenade

Screenshots:
[IMG]http://img117.**************/img117/2144/tripgrenadesuu7.th.jpg[/IMG][IMG]http://img117.**************/img117/6758/motiongrenadeswo9.th.jpg[/IMG][IMG]http://img117.**************/img117/7125/proximitygrenadesey6.th.jpg[/IMG]

Movie [Thanks retaer93]:
http://www.youtube.com/watch?v=gZTKaDsmoJg
http://www.youtube.com/watch?v=E0Ev5FDTS2c

Plugin API Example:
Info in the include file!
PHP Code:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <nademodes>
#define PLUGIN "NMM API TEST"
#define AUTHOR "OT"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)
}
 
// Block nadetype property set only if we have He grenades and the mode is trip laser
public fw_NM_nade_property_set(entNadeType:nade_type)
{
return (
get_grenade_race(ent) == _:GRENADE_EXPLOSIVE && nade_type == NADE_TRIP) ? PLUGIN_HANDLED PLUGIN_CONTINUE;
}
 
// Recheck to see if it is ok
public fw_NM_nade_property_set_post(entNadeType:nade_typebool:block)
{
new 
owner entity_get_edict(entEV_ENT_owner)
 
client_print(ownerprint_chat"%s"block "BLOCKED FORWARD" "NONBLOCKED")
 
return 
PLUGIN_HANDLED

Suggestions are welcomed! Please post all bugs that occur!
Hope you like the plugin!
Attached Files
File Type: inc nademodes.inc (7.5 KB, 3246 views)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 01-30-2012 at 09:34.
ot_207 is offline