Home   Help Search Login Register  

Author Topic: Ammo Trucks  (Read 821 times)

0 Members and 1 Guest are viewing this topic.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Ammo Trucks
« on: 05 Jul 2005, 00:09:13 »
Is there anyway we can speed up the re-arming time from default ammo trucks?  ???


Regards,
{SB}Trash Can Man($)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Ammo Trucks
« Reply #1 on: 05 Jul 2005, 08:00:27 »
I do not believe so.
« Last Edit: 05 Jul 2005, 08:00:35 by THobson »

Offline 456820

  • Contributing Member
  • **
Re:Ammo Trucks
« Reply #2 on: 05 Jul 2005, 12:45:07 »
i thought you could but not with scripts you have to edit the config.bin or something

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Ammo Trucks
« Reply #3 on: 05 Jul 2005, 17:47:18 »
erm - when i was at college, my programming lecturer was a ms. helen grant, and the main thing she taught me was this: there is always a way.

even if it means faking it. ;)

take away all the ammo from the rearming truck. does this disable its rearm function when you get close enough? if it does, great. if not, then there'll be a defunct action in the player's menu.

name the truck, and have a looped script going in the background such that, when the player gets close enough, your own rearm action is added to the  menu, which calls a script to instantaneously rearm the player according to whichever weapons are being carried/whatever weapons are in the vehicle.

it's a lot of work, and thinking about it, i'm unsure if it would be faster. there'd certainly be no waiting for the numbers to increase - the script would bestow full ammo instantly. it's finding out what weapons the player/player's vehicle has which would be the pain....

after ammo is restored to full, action is deleted. any questions? direct them to ms grant ;)

qqqqqq

  • Guest
Re:Ammo Trucks
« Reply #4 on: 05 Jul 2005, 18:00:18 »
? some rearming condition : setacctime 4
~2
setacctime1

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Ammo Trucks
« Reply #5 on: 05 Jul 2005, 21:02:29 »
hahahaha,,,,,,,,,I knew Helen Grant as well........small world.

And off-topic....... ::)


Planck
I know a little about a lot, and a lot about a little.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Ammo Trucks
« Reply #6 on: 06 Jul 2005, 12:02:12 »
can someone show me an example of this looping script. I have no idea as to how to make that ???


Trash Can Man

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Ammo Trucks
« Reply #7 on: 06 Jul 2005, 13:34:36 »
well, i've just had a wee play about with that idea, and it seems that even if all the ammo is taken away from an ammo truck, it will still rearm the player. so the alternative is to camcreate a dummy ammotruck, use the distance loop as described above, and rearm using that. only problem being the ammo truck cannot be driven, as it's simply a dummy object and no longer a vehicle.

example missionette attached...

the example given is for an m113. you'll have to find out the ammo types for your own vehicles and put those into the rearm script.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Ammo Trucks
« Reply #8 on: 11 Jul 2005, 17:45:23 »
ok a new problem has risen......the re-arm works fine on desert island, but when i tried to use it on everon, it didn't work....i tried it with an M1A1, with the ammo shanged in the script.....and nothing happened. Any thought?


Regards,
Trash Can Man

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Ammo Trucks
« Reply #9 on: 12 Jul 2005, 00:14:27 »
my initial thought is "hmmm... three posts by the same poster in succession.... that's not good now is it?" edit your most recent post if it's the last in the thread ;)

only thing concerning your everon problem is the script not recognising unit names - have you made them the same? i shall make a mockup in everon tomorrow and get back to you.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Ammo Trucks
« Reply #10 on: 04 Aug 2005, 19:49:14 »
sorry for the repetitive posts