Raised This Month: $ Target: $400
 0% 

ignored owner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JusTGo
Veteran Member
Join Date: Mar 2013
Old 06-27-2017 , 21:12   Re: ignored owner
Reply With Quote #2

2)

PHP Code:
public monsters_touch(monstertarget

   new array[
32
   new 
owner pev(monsterpev_owner
    
   
pev(targetpev_classname, array, charsmax(array)) 
       
   if(
equal(array, "func_door") || equal(array, "func_door_rotating") || equal(array, "func_button")) 
      
use_func(targetowner

   else if(
equal(array, "func_pushable")) 
      
velocity_func(monstertarget1
       
   else if(
equal(array, "player")) 
   {    
      if(!
is_user_alive(target) || target == owner ) return 
       
      new 
skip 
       
      pev
(monsterpev_model, array, charsmax(array)) 
       
      if(
equal(array, "models/w_grenade.mdl"))   set_pev(monsterpev_solidSOLID_NOT
      else if(
equal(array, "models/w_squeak.mdl"))   skip 
      
else if(equal(array, "models/w_satchel.mdl"))   skip 
      
else return // HLW_MP5(grenade) has NO model "o_O" 
       
      
if(get_pcvar_num(drop)) (  
         
console_cmd(target"drop"
       
      
velocity_func(monstertarget2
       
      if(!
skip
         
hurt_func(ownertargetget_pcvar_num(pain), monster)       
   } 

__________________
JusTGo 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 22:56.


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