Home   Help Search Login Register  

Author Topic: Surrounded and cut off  (Read 524 times)

0 Members and 2 Guests are viewing this topic.

Dubieman

  • Guest
Surrounded and cut off
« on: 13 Jul 2004, 04:08:28 »
I was thinking, what's better than the enemy hunting you in droves after you blew up their tank depot? Howsabout a script that alerts all units within an area and they try to pinpoint the player or the player's group. Kinda like a recon and then they hunt the player and finally surround him and move in for the kill.:gunman::wow:

Can it be done? :P ???

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Surrounded and cut off
« Reply #1 on: 13 Jul 2004, 04:40:25 »
Funny you should mention this topic . . .  ;D


I am currently working on a number of scripts that will do just that.  See my posts in the Beta Scripts forum.

The most involved mission that I am working on will use a time dilation script to make each game day pass in about 20 real minutes.  Each morning at 0600 each enemy group will decide whether or not to hunt rebels (ie - YOU) or return to camp.  Enemy groups already in camp may choose to stay there or go hunting.  The ratio of hunting groups to camping groups will start low, but go up as time passes and as you wipe out the enemy until eventually they will all be out gunning for your hide (and the bounty, presumably !).

Your player's position will be recorded by use of two variables - Last Known Position (LNP) and Info Age (IA).  Your LNP will update every time any group spots you (ie - their "knowsAbout" rating for your unit goes above a certain level), while the IA rating wil go up every 20 seconds or so.  Of course every time you are spotted the IA will go back to zero.

Enemy groups that are on the hunt will have their "Search and Destroy" waypoint moved to some place within a certain radius of your LNP.  This radius will of course go up as the IA goes up until it reaches a certain size (say 2 km), then the unit will go a random search pattern until you are spotted again. (ie - the IA goes back to zero again)

I will combine this mechanism with my Group Morale script and a Group Respawn script script so that the hunting enemy will seek towards the target waypoint unless their casualties are too high, in which case they will move away from the nearest enemy.  Of course, with respawn, after a while they'll be back sniffing blood and looking for you again . . .  :gunman: :noo:

 
So, if all goes according to plan the mission should go something like this -

Player runs for the hills and tries to find the weapons caches that I've cunningly placed in each village (with a generous radius of uncertainty), while also trying to recruit allies via a "Recruit" addAction that ony works inside villages.

Meanwhile, the nasty Reds will be scouring the area and if they pick up the player's position will home in on him.  Once enough guys start spotting him (or if they take too many casualties) they will call in their buds while they retreat to a safe distance to recover.  Pretty soon you'll have to head for the hills and try to lose the wolfpack while you plot your route to the NEXT village (and more weapons and recruits).

I haven't quite decided the ending yet.  I was going to have the mission last until all the baddies were killed, but since I have lots of addons I am thinking about setting up (say) five powerplants, HQ's etc and have the mission end once the player has blown up all five targets.

Of course, can you guess where the camping units will tend to gather ? !   ;D   :D :gunman:

The scripts are probably only a few days off but the mission might not be ready for at least two weeks.  I will post it to the forum when its ready to be tested.

Cheers !



Roni
« Last Edit: 13 Jul 2004, 04:55:21 by Roni »

Dubieman

  • Guest
Re:Surrounded and cut off
« Reply #2 on: 13 Jul 2004, 16:30:19 »
I like the way that works.:thumbsup:

But instead they give you no where to go and form a vee (is that a backwards wedge?) formation and four groups close any holes and move in with speed and if one group is really gaining caualties the others might just  stand up and rush you.

Now how can you get out of that? i'd satchel myself. ;D

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Surrounded and cut off
« Reply #3 on: 14 Jul 2004, 01:54:01 »
Hi GRK !

Try the two attached scripts.  Both are kind of beta versions - I've posted the straightSeek.sqs to the Beta Scripts forum for comments but haven't had any feedback yet  :(  >:(

Just make a scenario with (say) three standard East Infantry groups and one West unit (you the player).  Put the following in the Init field of the leader of each of the East groups -

[this] exec "spawnEInfantry.sqs"; [nearest, 12,3,1] exec "straightSeek.sqs"

Give each East group a Seek and Destroy waypoint placed anywhere on the map (don't worry, the seek script will move it onto the player for you !).  Now place anywhere on the map an object of any type (say - a house or a bush) called "nearest" (no quotes), a Game Logic unit called "server" and a trigger activated by East Present with a radius of 5000m and away you go.

If I've explained this right the three groups should immediately start to home in on your position.  At any time that they have 9 or fewer units in their group they should start to move away from you - the more casualties the further away they will move.

The respawn script will add one random unit to each group every 60 seconds so they should soon be back.  You should be constantly battling at least one group as it seeks towards your position - the only way to win this scenario is to kill every last unit in each East group (which kills the respawn script for that group).

This is probably an unwinnable situation but you'd better give yourself plenty of retreating room to have at least a fighting chance !

Try various combos of player weaponry, East maximum group sizes, East group morales and respawn rates and let me know how you get along.

Happy surviving !



Roni
« Last Edit: 14 Jul 2004, 01:59:02 by Roni »

Dubieman

  • Guest
Re:Surrounded and cut off
« Reply #4 on: 14 Jul 2004, 03:07:33 »
Cool I'll give it a try. I'm kinda sick of my mission, its hard to stay on topic when its causing so much trouble for you.

I hope the readmes have the same instructions as here cause I don't like havin to log onto the internet again.

I'll respond in the beta scripts and maybe spark some interest in others. ;) :)

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Surrounded and cut off
« Reply #5 on: 14 Jul 2004, 03:16:13 »
Both scripts are pretty well commented.

Good luck !


Roni