Raised This Month: $ Target: $400
 0% 

[Help]How can I send a tga on map?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lein
Junior Member
Join Date: Mar 2013
Location: China
Old 11-07-2013 , 11:51   [Help]How can I send a tga on map?
Reply With Quote #1

What message should I send?

As far as I know, we can send a message to show a model & sprite on the map!
such as this:

Send the SPR message
PHP Code:
    // create trail
    
message_beginMSG_BROADCASTSVC_TEMPENTITY )
    
write_byte(TE_BEAMFOLLOW)
    
write_short(ent)        //entity
    
write_short(cache_smoke)    //model
    
write_byte(5)            //10)//life
    
write_byte(3)            //5)//width
    
write_byte(trail[0])            //r
    
write_byte(trail[1])            //g
    
write_byte(trail[2])            //b
    
write_byte(200)            //brightness
    
message_end()    

    
// create effect exp
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
    
write_byte(TE_EXPLOSION); // TE_EXPLOSION
    
write_coord(floatround(entOrigin[0])); // origin x
    
write_coord(floatround(entOrigin[1])); // origin y
    
write_coord(floatround(entOrigin[2])); // origin z
    
write_short(c_cache_nadeexp[CURENT_WEAPON]); // sprites
    
write_byte(40); // scale in 0.1's
    
write_byte(30); // framerate
    
write_byte(14); // flags 
    
message_end(); // message end

    // create effect exp
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
    
write_byte(TE_EXPLOSION); // TE_EXPLOSION
    
write_coord(floatround(entOrigin[0])); // origin x
    
write_coord(floatround(entOrigin[1])); // origin y
    
write_coord(floatround(entOrigin[2])); // origin z
    
write_short(cache_explo); // sprites
    
write_byte(40); // scale in 0.1's
    
write_byte(30); // framerate
    
write_byte(TE_EXPLFLAG_NONE); // flags 
    
message_end(); // message end
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)  // Rauchwolke 烟云效果
    
write_byte(5)
    
write_coord(floatround(entOrigin[0])); // origin x
    
write_coord(floatround(entOrigin[1])); // origin y
    
write_coord(floatround(entOrigin[2])); // origin z
    
write_short(cache_smoke)
    
write_byte(35)
    
write_byte(5)
    
message_end() 
Send the decal message
PHP Code:
    message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_WORLDDECAL// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]) // z
    
write_byte(ArrayGetCell(g_bleeding_decalsrandom_num(0ArraySize(g_bleeding_decals) - 1)) + (g_IsModCZ 12)) // decal number (offsets +12 for CZ)
    
message_end() 
Now I want to send a tga to a origin,what message should I use?
How do I use it?
what argument?
__________________

一切伟大的行动和梦想,都有一个微不足道的开始!
All great actions and dreams, there is a small start!
lein 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 23:16.


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