AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Questions about attaching a sprite to a player (https://forums.alliedmods.net/showthread.php?t=183467)

ROKronoS 04-22-2012 05:39

Questions about attaching a sprite to a player
 
I'm trying to attach a sprite to a player and I don't want him to see the sprite , only the other players.

.Dare Devil. 04-22-2012 07:53

Re: Questions about attaching a sprite to a player
 
create new entity
give model "sprite"
set move type follow
and then pev_aiment

ROKronoS 04-22-2012 11:50

Re: Questions about attaching a sprite to a player
 
Already did it and i can still see the sprite when I'm runing backwards :)
PHP Code:

public Create_Spritehost )
{
    
g_player_ent[host] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_sprite"))
    
engfunc(EngFunc_SetModelg_player_ent[host], "sprites/sprite.spr")
    
set_pev(g_player_ent[host], pev_movetypeMOVETYPE_FOLLOW)
    
set_pev(g_player_ent[host], pev_aimenthost)
    
set_pev(g_player_ent[host], pev_rendermode5)
    
set_pev(g_player_ent[host], pev_renderamt255.0)
    
set_pev(g_player_ent[host], pev_scale0.7)
    
set_pev(g_player_ent[host], pev_ownerhost)

    
set_pev(g_player_ent[host], pev_animtimeget_gametime())
    
set_pev(g_player_ent[host], pev_framerate10.0)
    
set_pev(g_player_ent[host], pev_spawnflagsSF_SPRITE_STARTON)

    new 
Float:RenderColor[3]

    
RenderColor[0] = 255.0
    RenderColor
[1] = 0.0
    RenderColor
[2] = 255.0

    set_pev
(g_player_ent[host], pev_rendercolorRenderColor
    
dllfunc(DLLFunc_Spawng_player_ent[host])



ROKronoS 05-07-2012 07:33

Re: Questions about attaching a sprite to a player
 
Two weeks have passed.
BUMP


All times are GMT -4. The time now is 20:10.

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