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

spr will disappear when the distance is too close


Post New Thread Reply   
 
Thread Tools Display Modes
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:	59
Size:	94.5 KB
ID:	178556  
Attached Images
  
Leech_v2 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-01-2019 , 06:10   Re: spr will disappear when the distance is too close
Reply With Quote #2

What kind of insects is this?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 12-01-2019 , 06:31   Re: spr will disappear when the distance is too close
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
What kind of insects is this?
This is just a tail model plus 5 black sprite attachments
这只是一条尾巴模型加上5个黑色sprite附件
(I'm not sure my English is correct)
Attached Thumbnails
Click image for larger version

Name:	1311.gif
Views:	50
Size:	21.3 KB
ID:	178565  
Leech_v2 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 18:54.


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