torque中文教程--武器连续切换
%slot = 1;
else if(%curWeapon $= "m16")
%slot = 2;
else if(%curWeapon $= " PSWrifle ")
%slot = 3;
}
if ( %data $= "prev" ) {
// Previous weapon...
if ( %slot == 0 || %slot == -1 ) {
%i = $maxWeaponSlot;
%slot = 0;
}
else
%i = %slot - 1;
}
else {
// Next weapon...
if ( %slot == $maxWeaponSlot || %slot == -1 ) {
%i = 0;
%slot = $maxWeaponSlot;
}
else
%i = %slot + 1;
}
%newSlot = -1;
while ( %i != %slot ) {
if ( $weaponInSlot[%i] !$= ""
&& %this.hasInventory( $weaponInSlot[%i] )) {
// player has this weapon and it has ammo or doesn't need ammo
%newSlot = %i;
break;
}
if ( %data $= "prev" ) {
if ( %i == 0 )
%i = $maxWeaponSlot;
else
%i--;
}
else {
if ( %i == $maxWeaponSlot )
%i = 0;
else
%i++;
}
torque中文教程--武器切换_IT/计算机_专业资料。torque中文教程--武器切换教程:武器切换 作者:吴波 描述:在 FPS 模式游戏中,武器切换是最重要的功能之一,本教程...
torque中文教程--武器切换 torque中文教程--现实剩余... torque中文教程--AI巡逻 torque中文教程--静态形状 torque中文教程--开场画面 torque中文教程--武器连续....
torque中文教程--人工智能... torque中文教程--武器切换 torque中文教程--现实... torque中文教程--静态形状 torque中文教程--开场画面 torque中文教程--武器连续...
torque中文教程--武器切换 6页 免费 torque中文教程--武器连续... 5页 免费... torque中文教程--武器补充torque中文教程--武器补充隐藏>> 教程:控制玩家复活时...
torque中文教程--武器切换 6页 免费 torque中文教程--武器补充 2页 免费 torque中文教程--武器连续... 5页 免费 torque中文教程--武器伤害 12页 免费 torque...
torque中文教程--人工智能... torque中文教程--武器切换 torque中文教程--现实... torque中文教程--开场画面 torque中文教程--武器连续... torque中文教程--武器...
torque中文教程--物体碰撞 2页 免费 torque中文教程--武器切换 6页 免费 ... torque中文教程--武器伤害 12页 免费 torque中文教程--武器连续... 5页 ...
torque中文教程--开场画... torque中文教程--静态形... torque中文教程--手雷 torque中文教程--武器补... torque中文教程--瞄准器 torque中文教程--闪电 ...
torque中文教程--现实剩余子弹_IT/计算机_专业资料。torque中文教程--现实剩余...“server/scripts/weapon”下,编辑所有的武器脚本文件,以“pisto.cs” 为例,...
热门文档