Raised This Month: $ Target: $400
 0% 

spr will disappear when the distance is too close


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 12-01-2019 , 01:39   spr will disappear when the distance is too close
Reply With Quote #1

将多个spr附着在玩家模型上,在某些角度看会出现透视效果.如何避免这种问题?
Attach multiple spr to the player's model, the perspective(transparent?) effect will appear from some angles. How to avoid this problem?
Code:
public fw_PlayerSpawn_Post(id)
{
	if (!is_user_alive(id)) return
	
	cs_set_user_model(id, "snake")
	set_pdata_int(id, 491, mdlindex)
	
	for (new i=0;i<5;i++)
	{
		new ent=engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"env_sprite"))
		
		set_pev(ent, pev_movetype, 12)
		set_pev(ent, pev_aiment, id)
		set_pev(ent, pev_body, i)		// attachment
		set_pev(ent, pev_rendermode, 2)
		set_pev(ent, pev_renderamt, 255.0)
		set_pev(ent, pev_framerate, 10.0)
		set_pev(ent, pev_scale, 1.0)
		engfunc(EngFunc_SetModel, ent, "mommaspit.spr")
		
		dllfunc(DLLFunc_Spawn, ent)
	}
}
Attached Thumbnails
Click image for larger version

Name:	1312.gif
Views:	65
Size:	94.5 KB
ID:	178556  
Attached Images
  
Leech_v2 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 02:50.


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