AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set entity to on gorund? (https://forums.alliedmods.net/showthread.php?t=22294)

Obbin 12-23-2005 07:35

set entity to on gorund?
 
is it possible to trick CS/HL that a player is on the ground while falling/jumping .
someting width: set_entity_flags() or FL_ONGROUND or i dont know! :P

VEN 12-23-2005 10:19

Sure it's possible.
Why did you need that?

Obbin 12-23-2005 11:24

If that would be possible then it must be possible to make the bullets go straight when jumping, i mean if the server thinks i am on the ground.

VEN 12-23-2005 11:32

Then set flags wouldnt help.
If i understand you correctly you need to remove all player hitboxes.

<EDIT>

Obbin 12-23-2005 11:44

snippet?
hehe i suck at coding ^^

watch 12-23-2005 11:57

Code:
entity_set_int(id,EV_INT_solid,0)

although you wont beable to trigger things in maps

Obbin 12-23-2005 12:58

how to check if a player is in the air?
if he is not solid then he wont be possible to shoot?
can someone write a snippet so if player is in air then set solid to 0

v3x 12-23-2005 13:26

To check if the player isn't on the ground:
Code:
if(!(get_entity_flags(ent)&FL_ONGROUND)) {   // .. }

VEN 12-23-2005 13:38

Quote:

Originally Posted by obbin
it must be possible to make the bullets go straight when jumping

If you want only bullets but not other players go straight then use:
Code:
// fun.inc /* Sets hit zones for player.  * Parts of body are as bits:  * 1   - generic  * 2   - head  * 4   - chest  * 8   - stomach  * 16  - left arm  * 32  - right arm  * 64  - left leg  * 128 - right leg */ native set_user_hitzones(index = 0, target = 0, body = 255);


All times are GMT -4. The time now is 16:09.

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