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

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

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

}

function nextWeapon( %val )

{

if ( %val )

commandToServer( 'cycleWeapon', "next" );

}

moveMap.bind(keyboard, "ctrl q", prevWeapon);// "ctrl q"前一个武器

moveMap.bind(keyboard, "q", nextWeapon);// "q"后一个武器

4.打开 “client/scripts”目录下的“optionsDLG.cs” 文件,在段尾加入: $RemapName[$RemapCount] = "Previous Weapon";

$RemapCmd[$RemapCount] = "prevWeapon";

$RemapCount++;

$RemapName[$RemapCount] = "Next Weapon";

$RemapCmd[$RemapCount] = "nextWeapon";

$RemapCount++;

5.打开 “server/scripts”目录下的“inventory.cs” 文件,在开头处加入: $weaponInSlot[0] = "Browning";

$weaponInSlot[1] = "shotgun";

$weaponInSlot[2] = "m16";

$weaponInSlot[3] = "PSWrifle";

$maxWeaponSlot = 4;

注意:标注成红色的武器名要与自己的武器名相同,当然也可以再加更多的武器

6.在文件的段尾加入: function ShapeBase::hasInventory(%this, %data)

{

return (%this.inv[%data] > 0);

}

function serverCmdCycleWeapon( %client, %data )

{

%client.getControlObject().cycleWeapon( %data );

}

function ShapeBase::cycleWeapon( %this, %data )

{

%slot = -1;

if ( %this.getMountedImage($WeaponSlot) != 0 ) {

%curWeapon = %this.getMountedImage($WeaponSlot).item.getName();

if(%curWeapon $= "Browning")

%slot = 0;

else if(%curWeapon $= "shotgun")

上一页第2页

你可能喜欢

热门文档

相关文档

  • 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