Raised This Month: $ Target: $400
 0% 

Velocity and DLLFunc_Spawn, creating entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2009 , 13:54   Re: Velocity and DLLFunc_Spawn, creating entity
Reply With Quote #9

http://svn.tcwonline.org/viewvc.cgi/...p&root=amxmodx

Code:
void CSprite::Spawn( void ) {     pev->solid          = SOLID_NOT;     pev->movetype       = MOVETYPE_NONE;     pev->effects        = 0;     pev->frame          = 0;     Precache();     SET_MODEL( ENT(pev), STRING(pev->model) );     m_maxFrame = (float) MODEL_FRAMES( pev->modelindex ) - 1;     if ( pev->targetname && !(pev->spawnflags & SF_SPRITE_STARTON) )         TurnOff();     else         TurnOn();         // Worldcraft only sets y rotation, copy to Z     if ( pev->angles.y != 0 && pev->angles.z == 0 )     {         pev->angles.z = pev->angles.y;         pev->angles.y = 0;     } }

It's very useful so see how en entity is handle ; so you can adapt your code. Download the HLSDK.
__________________
Arkshine is offline
 



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 22:41.


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