Raised This Month: $ Target: $400
 0% 

Model over Floor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-03-2009 , 14:33   Model over Floor
Reply With Quote #1

Well I need to set this model into the floor

PHP Code:
 
public fwdplayerkill(idattackid)
{
 if( !
is_user_connected(attackid) )
  return 
HAM_IGNORED
 
 
new Float:origin[3]
 
pev(idpev_originorigin)
 
 new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
 
set_pev(entpev_classname"fake_deadbody");
 
 
set_pev(entpev_solidSOLID_NOT)
 
set_pev(entpev_movetypeMOVETYPE_NONE)
 
engfunc(EngFunc_SetModelentBODYMODEL)
 
engfunc(EngFunc_SetSizeentFloat:{-100.0, -100.0, -100.0}, Float:{100.0100.0100.0});
 
engfunc(EngFunc_SetOriginentorigin)
 
//engfunc(EngFunc_DropToFloor, ent)
 
 
return HAM_IGNORED
 

I try with fm_distance_to_floor but i cant.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-04-2009 , 04:50   Re: Model over Floor
Reply With Quote #2

I also need this.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-04-2009 , 08:24   Re: Model over Floor
Reply With Quote #3

PHP Code:
engfunc(EngFunc_DropToFloorent); 
not works?
__________________
xPaw is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 02-04-2009 , 09:14   Re: Model over Floor
Reply With Quote #4

Code:
new Float:origin[3]; pev(id, pev_origin, origin); origin[2] -= 35.0; engfunc(EngFunc_SetOrigin, ent, origin);
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 02-04-2009 at 09:35.
Dores is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-04-2009 , 11:16   Re: Model over Floor
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
PHP Code:
engfunc(EngFunc_DropToFloorent); 
not works?
Sometimes entity is too high.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-04-2009 , 11:25   Re: Model over Floor
Reply With Quote #6

Well here my final version... for mi Work:

PHP Code:
new Float:origin[3], Float:velo[3]
pev(idpev_originorigin)
pev(idpev_velocityvelo)
 
new 
newent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString,"info_target"))
 
velo[2] += 100
set_pev
(newentpev_originorigin)
set_pev(newentpev_classname"block_muerte")
engfunc(EngFunc_SetModelnewentMODEL_FILE)
engfunc(EngFunc_SetSize,newent, {-8.0, -16.0, -8.0} ,{8.016.08.0})
set_pev(newentpev_solidSOLID_TRIGGER)
set_pev(newentpev_movetype,MOVETYPE_TOSS)
set_pev(newentpev_velocity,velo)
engfunc(EngFunc_DropToFloor,newent
Dont need to spawn ent with EngFunc_DropToFloor
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 01:45.


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