Raised This Month: $32 Target: $400
 8% 

[ H3LP ] cs_set_user_plant?


Post New Thread Reply   
 
Thread Tools Display Modes
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-20-2017 , 18:02   Re: [ H3LP ] cs_set_user_plant?
Reply With Quote #11

I got it, it's working now. Thanks Hamlet.

Code:
public fw_Item_PostFrame(entity) {     if (!is_valid_ent(entity))         return HAM_IGNORED;     static id;     id = get_pdata_cbase(entity, OFFSET_WEAPONOWNER, OFFSET_LINUX_WEAPONS);     if (!is_user_alive(id))         return HAM_IGNORED;     if (!GetPlayerBit(g_has_self_destruct, id))         return HAM_IGNORED;     static func_bomb_target     func_bomb_target = find_ent_by_class(-1, "func_bomb_target");     if (is_valid_ent(func_bomb_target))         fake_touch(func_bomb_target, id)     return HAM_HANDLED; }

Now I just need to find a way to alter the explosion. I have a doubt, how can I get the owner of the C4 entity (w_c4.mdl)? I tried with ENT_owner (engine) but it didn't work.
__________________








CrazY. is offline
Reply



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 16:21.


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