2018年5月4日 星期五


一般只要使用冰動相關技能,都會有一個爆風效果,但這會導致把玩家震開
這常常會讓玩家飛到場外,造成不必要的紛爭

這技能都會分別設定友傷跟敵傷,所以我們要把爆風的攻能放在敵傷那裏面

爆風功能語法是PointPush


搜尋PointPush可以找到8個地方有使用,1個爆風主程式
語法大概是下面這樣

PointPush(Client, pos, 1000, IceBallRadius[Client], 0.5);

將這些放在特感的判斷理面,例如下面

                    if(GetClientTeam(i) == 3 && IsPlayerAlive(i) && !IsPlayerGhost(i))
                    {
                        GetEntPropVector(i, Prop_Send, "m_vecOrigin", entpos);
                        SubtractVectors(entpos, pos, distance);
                        if(GetVectorLength(distance) <= Radius)
                        {
                            DealDamage(Client, i, IceBallDamage[Client], 0 , "chain_lightning");
                            FreezePlayer(i, entpos, IceBallDuration[Client]);
                        }
                    }

要記得把PointPush放在攻擊範圍Radius判斷裡面

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © 阿土進擊班 - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -