This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Entity solidity problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-28-2011 , 12:35   Entity solidity problem
Reply With Quote #1

Hey I've had a little problem with my entity, I was just watching Hawks tutorial on entities
So I decided to try it out but for some reason my entity isn't solid

I've check the dump file of the model to make sure that the size is correct.
I've also asked in the thread but yeah someone said I had to make a movetype,
didn't work either

So please someone who can help me with this problem?

PHP Code:
public spawn_entity(id)
{
    new 
Origin[3]
    
get_user_originidOrigin)
    
    new 
Float:SpawnOrigin[3]
    
IVecFVecOriginFloat:SpawnOrigin )
    
    new 
Ent create_entity"info_target" )
    
entity_set_stringEnt,EV_SZ_classname,g_Classname )
    
entity_set_modelEnt,g_Model )
    
entity_set_intEnt,EV_INT_solid,SOLID_BBOX )
    
entity_set_intEnt,EV_INT_movetype,MOVETYPE_NONE )
    
entity_set_sizeEnt,Float:{-43.7,-118.1,0.0},Float:{43.1,117.5,98.7} )
    
entity_set_edictEnt,EV_ENT_owner,id )
    
entity_set_originEntSpawnOrigin )

Erox902 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-28-2011 , 15:16   Re: Entity solidity problem
Reply With Quote #2

Try setting the origin first, then model, solid and size.
__________________
hleV is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-28-2011 , 15:35   Re: Entity solidity problem
Reply With Quote #3

MOVETYPE_NONE cancells any solid property, set it to MOVETYPE_FLY if you want it to have collisions but not gravity.
__________________
Hunter-Digital is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-29-2011 , 10:55   Re: Entity solidity problem
Reply With Quote #4

Quote:
Originally Posted by Hunter-Digital View Post
MOVETYPE_NONE cancells any solid property, set it to MOVETYPE_FLY if you want it to have collisions but not gravity.
This acually sounded really great, but still no success


hlev: That didn't make it either
Erox902 is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 07-29-2011 , 11:03   Re: Entity solidity problem
Reply With Quote #5

If you are owner of the entity with SOLID_BBOX, it will be solid for all players, except you
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 07-29-2011 , 11:13   Re: Entity solidity problem
Reply With Quote #6

So do not set EV_ENT_owner if you don't really need it, or try another solid constants like (not sure) SOLID_BSB
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-29-2011 , 12:26   Re: Entity solidity problem
Reply With Quote #7

Quote:
Originally Posted by Flipper_SPb View Post
So do not set EV_ENT_owner if you don't really need it, or try another solid constants like (not sure) SOLID_BSB
Thank you that finally made it
Only problem now is I've made the entities size
lets say horizontal when the model is vertical.
Erox902 is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-29-2011 , 13:57   Re: Entity solidity problem
Reply With Quote #8

Quote:
Originally Posted by Flipper_SPb View Post
If you are owner of the entity with SOLID_BBOX, it will be solid for all players, except you
Wow, never knew that thnx,
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 03:34.


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