Raised This Month: $ Target: $400
 0% 

Do things with water..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 06-10-2007 , 01:19   Re: Do things with water..
Reply With Quote #7

Something like this should work:
Code:
#include <amxmodx> #include <fakemeta_util> public plugin_init() {         register_concmd("tst", "func") } public func(id) {         static Float:v[3]         fm_get_aim_origin(id, v)         new ent = FM_NULLENT         static const func_water[] = "func_water"         while ((ent = fm_find_ent_in_sphere(ent, v, 0.0))) {                 if (fm_is_ent_classname(ent, func_water)) {                         static Float:v2[3]                         pev(ent, pev_absmin, v)                         pev(ent, pev_absmax, v2)                         ent = fm_create_entity("trigger_hurt")                         set_pev(ent, pev_dmg, 2.0)                         fm_DispatchSpawn(ent)                         fm_entity_set_size(ent, v, v2)                         return PLUGIN_HANDLED                 }         }         return PLUGIN_HANDLED }
VEN is offline
 



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 10:44.


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