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")
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” 为例,...
热门文档