Raised This Month: $51 Target: $400
 12% 

Questions about attaching a sprite to a player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ROKronoS
Senior Member
Join Date: Oct 2010
Location: Bucharest, Romania
Old 04-22-2012 , 05:39   Questions about attaching a sprite to a player
Reply With Quote #1

I'm trying to attach a sprite to a player and I don't want him to see the sprite , only the other players.
ROKronoS is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-22-2012 , 07:53   Re: Questions about attaching a sprite to a player
Reply With Quote #2

create new entity
give model "sprite"
set move type follow
and then pev_aiment
.Dare Devil. is offline
ROKronoS
Senior Member
Join Date: Oct 2010
Location: Bucharest, Romania
Old 04-22-2012 , 11:50   Re: Questions about attaching a sprite to a player
Reply With Quote #3

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])


Last edited by ROKronoS; 04-22-2012 at 11:54.
ROKronoS is offline
ROKronoS
Senior Member
Join Date: Oct 2010
Location: Bucharest, Romania
Old 05-07-2012 , 07:33   Re: Questions about attaching a sprite to a player
Reply With Quote #4

Two weeks have passed.
BUMP
ROKronoS is offline
Reply



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 11:07.


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