Raised This Month: $ Target: $400
 0% 

Solved Removing Grenade Entity Before Explosion


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-15-2022 , 19:22   Re: Removing Grenade Entity Before Explosion
Reply With Quote #1

Alright, a solution don't use remove_entity, use instead the other method which is by setting an entity flags to FL_KILLME then call entity think, its more reliable safer way !
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
hellmonja
Senior Member
Join Date: Oct 2015
Old 04-16-2022 , 08:24   Re: Removing Grenade Entity Before Explosion
Reply With Quote #2

Quote:
Originally Posted by Natsheh View Post
Alright, a solution don't use remove_entity, use instead the other method which is by setting an entity flags to FL_KILLME then call entity think, its more reliable safer way !
That's definitely good to know, thanks. I'm familiar with FL_KILLME but it never worked for me. Probably because I'm unfamiliar with calling entity think and didn't know you had to do that.

I made this stock. Did I do it properly?...
PHP Code:
stock kill_entity(ent)
{
    
set_pev(entpev_flagspev(entpev_flags) | FL_KILLME);
    
set_pev(entpev_nextthinkget_gametime() + 0.01);
    
dllfunc(DLLFunc_Thinkent);

__________________
hellmonja 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 21:21.


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