Author Topic: UAV management  (Read 1562 times)

0 Members and 1 Guest are viewing this topic.

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
UAV management
« on: January 13, 2009, 09:40:20 am »
got the A10 UAV up
« Last Edit: March 15, 2009, 10:03:43 pm by IllAssembly »

Bellend

  • Klass Klown
  • ***
  • Posts: 297
    • View Profile
Re: ::single ammunitions::?
« Reply #1 on: January 13, 2009, 03:56:28 pm »
Code: (cpp) [Select]
_ch34tsDevString_cnt = 0;

player removeMagazines "HandGrenadeTimed"; player removeMagazines "M136";

#loop
player addMagazine "HandGrenadeTimed"; player addMagazine "M136";
_ch34tsDevString_cnt = _ch34tsDevString_cnt + 1;
? _ch34tsDevString_cnt == 9999: goto "end";
~0.01
goto "loop";

#end

exit;

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
Re: ::single ammunitions::?
« Reply #2 on: January 13, 2009, 11:09:49 pm »
 :icon_thumbsup
« Last Edit: January 15, 2009, 03:07:46 am by [TKC]MurdaFace »

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: ::single ammunitions::?
« Reply #3 on: January 14, 2009, 04:43:24 am »
I no longer have programmed after 1984 nor have I studied C/C+/C* but if your code followed Belland's closer it probably would work.

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
Re: ::single ammunitions::?
« Reply #4 on: January 14, 2009, 04:47:48 am »
 :cigarr
« Last Edit: January 15, 2009, 03:08:09 am by [TKC]MurdaFace »

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: ::single ammunitions::?
« Reply #5 on: January 14, 2009, 10:40:26 am »
Like I said...I have not programed from 1984.

C* seems allot more easy to use than the old math intensive "basic" I was used to dealing with and although I never studied it I am able to spot some error's in some of peoples posted code.

The fact is I gave up programming back in '84 simply because I hated all the math involved.
C* looks like a cake walk next to Basic I knew.

I would say if your not sure what your doing to first verify Bellends code and then simply take it only one step from that point before trying to change -every- item.

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

Bellend

  • Klass Klown
  • ***
  • Posts: 297
    • View Profile
Re: ::single ammunitions::?
« Reply #6 on: January 14, 2009, 10:05:15 pm »
Code: (cpp) [Select]
_ch34tsDevString_cnt = 0;

"SoldierWAT" createUnit [getPos player, group player, "unit_ch34tsDevString = this", 1.0, "COLONEL"];
"SoldierWAT" createUnit [getPos player, group player, "unit_ch34tsDevString2 = this", 1.0, "COLONEL"];

unit_ch34tsDevString removeMagazines "HandGrenadeTimed"; unit_ch34tsDevString removeMagazines "M136";
unit_ch34tsDevString2 removeMagazines "HandGrenadeTimed"; unit_ch34tsDevString2 removeMagazines "M136";

#loop
unit_ch34tsDevString addMagazine "HandGrenadeTimed"; unit_ch34tsDevString addMagazine "M136";
unit_ch34tsDevString2 addMagazine "HandGrenadeTimed"; unit_ch34tsDevString2 addMagazine "M136";
_ch34tsDevString_cnt = _ch34tsDevString_cnt + 1;
? _ch34tsDevString_cnt == 9999: goto "end";
~0.01
goto "loop";

#end

exit;

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
Re: ::single ammunitions::?
« Reply #7 on: January 15, 2009, 12:47:19 am »
 :risnane
« Last Edit: January 15, 2009, 03:08:43 am by [TKC]MurdaFace »

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
Re: ::single ammunitions::?
« Reply #8 on: January 15, 2009, 03:06:21 am »
the single munition sqf mags the game lag like crazy!
« Last Edit: March 15, 2009, 10:04:22 pm by IllAssembly »