AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   spr will disappear when the distance is too close (https://forums.alliedmods.net/showthread.php?t=320009)

Leech_v2 12-01-2019 01:39

spr will disappear when the distance is too close
 
3 Attachment(s)
将多个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)
        }
}


Natsheh 12-01-2019 06:10

Re: spr will disappear when the distance is too close
 
What kind of insects is this?

Leech_v2 12-01-2019 06:31

Re: spr will disappear when the distance is too close
 
1 Attachment(s)
Quote:

Originally Posted by Natsheh (Post 2675193)
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)


All times are GMT -4. The time now is 02:50.

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