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

[TUT] Entities: what they are and how to use them


Post New Thread Reply   
 
Thread Tools Display Modes
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-23-2011 , 10:45   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #61

Quote:
Originally Posted by Emp` View Post
Set size after you set solid type.
That's what I did I clicked "show hitbox", and then "dump model info"
And then setted solidity and then the hitbox sizes, but it's still not solid
Erox902 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-23-2011 , 16:04   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #62

Quote:
Originally Posted by Erox902 View Post
That's what I did I clicked "show hitbox", and then "dump model info"
And then setted solidity and then the hitbox sizes, but it's still not solid
No, he means in code.

Code:
entity_set_int(entity, EV_INT_solid, /*SOLID_* constant*/) entity_set_size(entity, /*mins*/, /*maxs*/)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-23-2011 , 18:53   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #63

Quote:
Originally Posted by Exolent[jNr] View Post
No, he means in code.


Code:
entity_set_int(entity, EV_INT_solid, /*SOLID_* constant*/)</p><p>entity_set_size(entity, /*mins*/, /*maxs*/)
Yeah that's exactly what I did, and I've tried all solid constants
I'll post the code tommorow when I get home
Erox902 is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-24-2011 , 08:15   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #64

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_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
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-25-2011 , 09:56   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #65

You'll need to specify a movetype aswell I belive.
If you want gravity, MOVETYPE_TOSS would do, if not, MOVETYPE_FLY would do.
__________________
Hunter-Digital is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-25-2011 , 18:47   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #66

Quote:
Originally Posted by Hunter-Digital View Post
You'll need to specify a movetype aswell I belive.
If you want gravity, MOVETYPE_TOSS would do, if not, MOVETYPE_FLY would do.
Tried that now, didn't make it solid either
Erox902 is offline
liinuus
Senior Member
Join Date: Apr 2010
Old 07-26-2011 , 13:11   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #67

Quote:
Originally Posted by Erox902 View Post
Tried that now, didn't make it solid either
do you have the right size set? if uve set a to small size not all of the model will be solid
liinuus is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-26-2011 , 16:11   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #68

Quote:
Originally Posted by liinuus View Post
do you have the right size set? if uve set a to small size not all of the model will be solid
No I checked the dump info atleast 4 times
And absolutly nothing of the entity is solid
Erox902 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 08-31-2013 , 07:18   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #69

Can^t create func_vehicle?
__________________
kiki33hun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2013 , 10:01   Re: [TUT] Entities: what they are and how to use them
Reply With Quote #70

You can create any class that is a default mod class.
For some entities, you may not be able to use them as you whish though.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 03:57.


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