文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > torque中文教程--武器连续切换
侵权投诉

torque中文教程--武器连续切换

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++;

}

上一页第3页

你可能喜欢

热门文档

相关文档

  • torque中文教程--武器切换

    torque中文教程--武器切换_IT/计算机_专业资料。torque中文教程--武器切换教程:武器切换 作者:吴波 描述:在 FPS 模式游戏中,武器切换是最重要的功能之一,本教程...

  • torque中文教程--产生触发器

    torque中文教程--武器切换 torque中文教程--现实剩余... torque中文教程--AI巡逻 torque中文教程--静态形状 torque中文教程--开场画面 torque中文教程--武器连续....

  • torque中文教程--物体碰撞

    torque中文教程--人工智能... torque中文教程--武器切换 torque中文教程--现实... torque中文教程--静态形状 torque中文教程--开场画面 torque中文教程--武器连续...

  • torque中文教程--武器补充

    torque中文教程--武器切换 6页 免费 torque中文教程--武器连续... 5页 免费... torque中文教程--武器补充torque中文教程--武器补充隐藏>> 教程:控制玩家复活时...

  • Torque_武器中文教程

    torque中文教程--武器切换 6页 免费 torque中文教程--武器补充 2页 免费 torque中文教程--武器连续... 5页 免费 torque中文教程--武器伤害 12页 免费 torque...

  • torque中文教程--静态形状

    torque中文教程--人工智能... torque中文教程--武器切换 torque中文教程--现实... torque中文教程--开场画面 torque中文教程--武器连续... torque中文教程--武器...

  • torque中文教程--瞄准器

    torque中文教程--物体碰撞 2页 免费 torque中文教程--武器切换 6页 免费 ... torque中文教程--武器伤害 12页 免费 torque中文教程--武器连续... 5页 ...

  • torque中文教程--人工智能2

    torque中文教程--开场画... torque中文教程--静态形... torque中文教程--手雷 torque中文教程--武器补... torque中文教程--瞄准器 torque中文教程--闪电 ...

  • torque中文教程--现实剩余子弹

    torque中文教程--现实剩余子弹_IT/计算机_专业资料。torque中文教程--现实剩余...“server/scripts/weapon”下,编辑所有的武器脚本文件,以“pisto.cs” 为例,...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email