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

Solid entity wont be solid ...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 02-03-2009 , 12:20   Solid entity wont be solid ...
Reply With Quote #1

Hello

I would like to spawn a solid entity but its wont work


here is my code


PHP Code:
public test(id) {
    new 
Float:Aim[3], Float:origin[3]
    
    
velocity_by_aim(id64Aim)
    
pev(idpev_originorigin)
    
origin[0] += Aim[0]
    
origin[1] += Aim[1]

    new 
ent spawn(idorigin)
    
g_ent[id] = ent
}
public 
spawn(idFloat:origin[3])
{    
    new 
ent create_entity("info_target");
    if(!
ent) return 0

    
new class_name[32]
    
format(class_name,31,"ent_test");
    
    
set_pev(entpev_classnameclass_name,31)
    
set_pev(entpev_movetypeMOVETYPE_PUSH// TOSS 
    
set_pev(entpev_solidSOLID_BBOX)
    
engfunc(EngFunc_SetModelent"models/base.mdl")    
    
engfunc(EngFunc_SetSizeentFloat:{-16.0, -16.00.0}, Float:{16.016.032.0} )

    
set_pev(entpev_ownerid)
    
set_pev(entpev_health500.0)
    
set_pev(entpev_takedamage1)
    
    
set_pev(entpev_originorigin)
    
    
engfunc(EngFunc_DropToFloorent)
    
    return 
ent

its spawn the entity but cannot be solid


anyone can help me please ?

Last edited by kossolax; 02-03-2009 at 12:29.
kossolax is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 02-03-2009 , 12:30   Re: Solid entity wont be solid ...
Reply With Quote #2

you make the precache event?
__________________

padilha007 is offline
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 02-03-2009 , 12:41   Re: Solid entity wont be solid ...
Reply With Quote #3

yes, I see it correctly but I can walk in it ...
kossolax is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 02-03-2009 , 13:19   Re: Solid entity wont be solid ...
Reply With Quote #4

put all code hear
__________________

padilha007 is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-03-2009 , 13:32   Re: Solid entity wont be solid ...
Reply With Quote #5

try and make the size bigger so u are 100% sure its not solid. I think i can remember a player model is like 72 high or something like that. So 16 is pretty small..
__________________
Dr.G is offline
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 02-03-2009 , 14:36   Re: Solid entity wont be solid ...
Reply With Quote #6

it isnt the size

and its
-16 in min and 16 in max

so 16 + 16 = 32

32 = player size ...

and even with 320 still not working ....
kossolax 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 16:03.


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