コード例 #1
0
 public void DeployableTurretWeaponImageOnUnmount(coShapeBaseImageData thisobj, coShapeBase obj, int slot)
     {
     //print("AI CONTROL 7");
     if (obj["client"] != "" && obj["isAiControlled"].AsBool() == false)
         ((coGameConnection)obj["client"]).call("RefreshWeaponHud", "0");
     }
コード例 #2
0
 public void DeployableTurretWeaponImageOnFire(coShapeBaseImageData thisobj, coShapeBase obj, int slot)
     {
     obj.schedule("0", "throw", thisobj["item"]);
     }
コード例 #3
0
        public void DeployableTurretWeaponImageOnMount(coShapeBaseImageData thisobj, coShapeBase obj, int slot)
            {
            obj.setImageAmmo(slot, true);

            int numTurrets = ShapeBaseShapeBaseGetInventory(obj, thisobj["item"]);

            if (obj["client"] != "" && obj["isAiControlled"].AsBool() == false)
                ((coGameConnection)obj["client"]).call("RefreshWeaponHud", "1", thisobj["item.previewImage"], thisobj["item.reticle"], thisobj["item.zoomReticle"], numTurrets.AsString());
            }