Help with AI Mission Loot

Elemtael

New Member
This is my first post on this site though I have been lurking for over a month now pulling bits for my server and I have to say everyone here is friendly and helpful. It goes without saying that after 2 days of working on this issue all by lonesome I am ready to smash my computer and just walk away... but I thought I'd give it one last shot.

Here is my issue: On my server I have 3 static AI missions (Sarge AI) with escalating difficulty and reward. I have successfully built the AI compounds and implemented the AI the way I want them to behave but I cannot for the life of me figure out how to spawn in RANDOMIZED crates with loot. I can get the crates to spawn...just not with random rewards.

If you kind people could assist me before I do something drastic I would be most appreciative. :D

These are some things I am looking for:

  • 3 separate crates with 3 separate loot tables for the 3 missions. 3 is the key!
  • Randomized loot with pretty drastic differences in drop chance. For example .01 chance for dmr, 1 chance for can of baked beans.
  • I don't even know if this is possible but I'd like to find a way to tie it to the AI script so that there is never an unguarded crate spawned in.
  • A way to replenish the crate without having to wait for a server restart. It needs to be able to be looted several times during the server's uptime.
The way I have tried spawning the crate in with some success (I'm sure there is a better way to do this) is to have the crate that is spawned in start a sleep timer when the player gets near it. At the end of 5 minutes the crate is destroyed and another sleep timer starts that spawns the next crate. I can see the potential for exploitation for this as a player could get the AI camp down to 1 or 2 AI then just wait out the timers. I am not aware of another way to do it though...

Help me...please...you're my only hope!
 
Back
Top