AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   underfoot sprite.. (https://forums.alliedmods.net/showthread.php?t=133250)

AngeIII 07-23-2010 10:51

underfoot sprite..
 
How to place a sprite underfoot [ to the floor ]... I know ho to place to the wall , but how to place to the floor/ground?

and if it's real how to place this using messange_begin()....

AngeIII 07-23-2010 12:45

Re: underfoot sprite..
 
something about this :
PHP Code:

stock Create_TE_SPRITE(position[3], iSpritescalealpha){

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY 
    
write_byteTE_SPRITE 
    
write_coordposition[0] )        // position)
    
write_coordposition[1] ) 
    
write_coordposition[2] ) 
    
write_shortiSprite )            // sprite index
    
write_bytescale)                // scale in 0.1's
    
write_bytealpha )                // brightness
    
message_end() 


but how to change Angle... or put this in floor/ground..

joropito 07-23-2010 16:04

Re: underfoot sprite..
 
As far as I know, TE_SPRITE uses texture or brush angles (not sure) so you can't change it.

You can spawn entities but for footsteps you can get full of entities, get lagged and get server crash.

I suggest to use TE_SPRITE using a simple symmetrical sprite (like a dot, ball, etc).

AngeIII 07-23-2010 16:30

Re: underfoot sprite..
 
1 Attachment(s)
oh.. I only want to create a skill [ custom mod.. ] who can stop player moving.[analog of war3ft elf's root ultimate] and underfoot place COBWEB sprite..

http://rune-nifelheim.com/db/skills/...sor_spider.gif
then only one variant - use create_entity?


All times are GMT -4. The time now is 00:17.

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