Raised This Month: $ Target: $400
 0% 

set entity to on gorund?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-23-2005 , 07:35   set entity to on gorund?
Reply With Quote #1

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!
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-23-2005 , 10:19  
Reply With Quote #2

Sure it's possible.
Why did you need that?
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-23-2005 , 11:24  
Reply With Quote #3

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.
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-23-2005 , 11:32  
Reply With Quote #4

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

<EDIT>
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-23-2005 , 11:44  
Reply With Quote #5

snippet?
hehe i suck at coding ^^
__________________
Sig(h)!
Obbin is offline
watch
Senior Member
Join Date: Sep 2005
Old 12-23-2005 , 11:57  
Reply With Quote #6

Code:
entity_set_int(id,EV_INT_solid,0)

although you wont beable to trigger things in maps
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-23-2005 , 12:58  
Reply With Quote #7

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
__________________
Sig(h)!
Obbin is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-23-2005 , 13:26  
Reply With Quote #8

To check if the player isn't on the ground:
Code:
if(!(get_entity_flags(ent)&FL_ONGROUND)) {   // .. }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-23-2005 , 13:38  
Reply With Quote #9

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);
VEN is offline
Reply


Thread Tools
Display Modes

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:09.


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