Raised This Month: $ Target: $400
 0% 

Attach Sprite on model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 07-13-2004 , 05:58   Attach Sprite on model
Reply With Quote #1

Code:
    VelocityByAim(id, 600 , velocity)       entity_set_int(NewItem, EV_INT_renderfx, kRenderFxGlowShell)     entity_set_float(NewItem, EV_FL_renderamt, 150.0)     entity_set_int(NewItem, EV_INT_rendermode, kRenderTransAlpha)     entity_set_vector(NewItem, EV_VEC_rendercolor,Color)                                                                                                                     entity_set_string(NewItem, EV_SZ_classname, "wc3item2")     entity_set_model(NewItem, "models/bag.mdl")                                                                                                                     entity_set_vector(NewItem, EV_VEC_mins, MinBox)     entity_set_vector(NewItem, EV_VEC_maxs, MaxBox)     entity_get_vector(id, EV_VEC_origin, g_origin)     entity_set_origin(NewItem, g_origin)                                                                                                                     entity_set_int(NewItem, EV_INT_effects, 32)     entity_set_int(NewItem, EV_INT_solid, 1)     entity_set_int(NewItem, EV_INT_movetype, 6)     entity_set_edict(NewItem, EV_ENT_owner, id)     entity_set_int(NewItem, EV_INT_iuser4, playeritem2[id])                                                                                                                     entity_set_vector(NewItem, EV_VEC_velocity, velocity)

Someone can help me for attach a sprite under the TEMP ENTITY (we can drop & get it)
all work, but the sprite....

the sprite was called icon_item

and other thing someone know where i can found
Code:
    entity_set_int(NewItem, EV_INT_effects, 32)     entity_set_int(NewItem, EV_INT_solid, 1)
definition of solid etc..... for have better effect or other stuf
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
 


Thread Tools
Display Modes

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 14:50.


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