Raised This Month: $51 Target: $400
 12% 

[ H3LP ] Make Entity Think Is On Ground


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-16-2017 , 13:31   [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #1

Hello. How can I make the entity think that it is on ground even if it is not? I noticed that some entities even if they're not on ground, like item_tfgoal are threaten as if they were before moving them. Thanks !
DarthMan is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-16-2017 , 14:36   Re: [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #2

set_pev(entity_index, pev_flags, pev(entity_index,pev_flags) | FL_ONGROUND)
__________________
@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
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-16-2017 , 15:39   Re: [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
set_pev(entity_index, pev_flags, pev(entity_index,pev_flags) | FL_ONGROUND)
That doesn't seem to work, unfortunately. I could use engfunc(EngFunc_DropToFloor, entity_index) but then some entities like env_sprite will be dropped to floor and I want to prevent that.

Last edited by DarthMan; 10-16-2017 at 15:49.
DarthMan is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-16-2017 , 17:36   Re: [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #4

Quote:
Originally Posted by DarthMan View Post
That doesn't seem to work, unfortunately. I could use engfunc(EngFunc_DropToFloor, entity_index) but then some entities like env_sprite will be dropped to floor and I want to prevent that.
It depends if you have tested it, and why you want to do this useless thing...?
__________________
@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
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-16-2017 , 17:43   Re: [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
It depends if you have tested it, and why you want to do this useless thing...?
Because sometimes entities get stuck if the aim is very close to me.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-17-2017 , 02:31   Re: [ H3LP ] Make Entity Think Is On Ground
Reply With Quote #6

Actually, when I move entities using the EntMod it works fine, but if somehow I get stuck on them before they're dropped, even if they're SOLID_TRIGGER, they're not dropped to floor.
DarthMan 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 20:40.


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