Jack Wachter Posted December 6, 2019 Share Posted December 6, 2019 So I've started messing around with IGOR and well, I'm slowly figuring things out. Right now I've figured out how to setup the enemies: basically moving all the points to inside the building(s) of interest and use the SpawnOpposingPatrolForce response with a random number of enemies. It's quite refreshing. I'm having issues figuring out how to spawn in noncombatants in a randomized way. I know the settings I need to use to make them noncombatants, but how can I reliably set it up to be randomized? Quote Link to comment Share on other sites More sharing options...
die7 Posted December 6, 2019 Share Posted December 6, 2019 Very nice to idea, unf as far I know spawn points, base, etc are not planed for civilian, so to achieve this you need to b be creative and maybe work with rand integer, triggered plans, zones, hide, show, invincible, invisible etc Quote Link to comment Share on other sites More sharing options...
Jack Wachter Posted December 8, 2019 Author Share Posted December 8, 2019 (edited) I found a way to do it. I'm using SpawnOpposingPatrolForce for both the noncombatants and OPFOR. The sequence goes like this: SpawnOpposingPatrolForce Set the first active company to be called "Noncombatants" Make all actors in Noncombatants undetectable Queue a loop for all actors in Noncombatants that leads to a block that gives them all some form of kit with no weapons (I decided to set them up with cameras among other things) SpawnOpposingPatrolForce <-this spawns another enemy patrol force, but these guys keep their weapons and act as normal. EDIT: Here is my current template script. I'm using separate constants for some of the numbers so that I don't have to open a million windows to adjust one value. Spoiler Group: <Default> Comment: Spawn Noncombatants then OPFOR Trigger Event: The simulation is initializing. Responses: Spawn an opposing patrol force with (A random integer between 1 and 30) members. Set Company - Noncombatants to (The first active company). Make all actors in Company - Noncombatants undetectable. Use Group - Noncombatants to loop over all actors in Company - Noncombatants after this block. Set Counter - Noncombatant Deaths to 0. Spawn an opposing patrol force with (A random integer between 1 and 50) members. Group: <Default> Comment: End the mission Trigger Event: All actors in Company - OPFOR have been killed. Responses: Mark Objective - OPFOR Elimination complete in the objective list. Display ("Noncombatant Deaths: " + ((The value of Counter - Noncombatant Deaths) as text)) to all players for 5 second(s). Display "Area cleared of all hostiles" and register mission completion. Group: <Default> Comment: Noncombatant death notification Trigger Event: A member of Company - Noncombatants has been killed. Responses: Allow this block to be reactivated. Increment Counter - Noncombatant Deaths. Display ("Noncombatant Deaths: " + ((The value of Counter - Noncombatant Deaths) as text)) to all players. Group: Group - Noncombatants Comment: Give noncombatants no weapon kits Trigger Event: An actor loop is ready to process Actor - Loop. Responses: Allow this block to be reactivated. Assign ("noncombatant_" + (((A random integer between 1 and 41) as text) + ".kit")) to Actor - Loop. Force Actor - Loop to flee. Edited December 8, 2019 by Jack Wachter 2 Quote Link to comment Share on other sites More sharing options...
die7 Posted December 9, 2019 Share Posted December 9, 2019 nice work Quote Link to comment Share on other sites More sharing options...
Jack Wachter Posted December 11, 2019 Author Share Posted December 11, 2019 It works except for automatically ending the mission when all of the actual enemies are dead. It's still functional, just requires manually exiting the mission and no notification when all enemies are dead. Quote Link to comment Share on other sites More sharing options...
die7 Posted December 12, 2019 Share Posted December 12, 2019 (edited) On 11/12/2019 at 04:44, Jack Wachter said: It works except for automatically ending the mission when all of the actual enemies are dead. It's still functional, just requires manually exiting the mission and no notification when all enemies are dead. that can be solved by multiple ways , either create timer and call trigger timer expired(one sec, check if all members of OPFOR company is killed or is 0 members is in OPFOR alive then end objective, or/and endGame) or chose trigger DeathCompany then close objective/EndGame. Edited December 12, 2019 by die7 Quote Link to comment Share on other sites More sharing options...
Jack Wachter Posted December 12, 2019 Author Share Posted December 12, 2019 The problem is that it doesn't seem I'm able to link the second SpawnOpposingPatrolForce to a company reference, so I can't even check Quote Link to comment Share on other sites More sharing options...
die7 Posted December 12, 2019 Share Posted December 12, 2019 can You attach mission file so I can take look Quote Link to comment Share on other sites More sharing options...
Jack Wachter Posted December 13, 2019 Author Share Posted December 13, 2019 Attached are the current template scripts that I import to help me make these faster. All you need is a map where you define the insertion zone and zones for points 0 through 35. template_cqbtraining_opfor.gtf template_cqbtraining_opfornoncombatants.gtf Quote Link to comment Share on other sites More sharing options...
die7 Posted December 13, 2019 Share Posted December 13, 2019 define variables of actors/teams/company's in startup and not in preaction trigger Quote Link to comment Share on other sites More sharing options...
die7 Posted December 13, 2019 Share Posted December 13, 2019 the first script is ok, it's a typical firefight with 50 enemies and it works, the second one can not work, afaik just one opfor company can be spawned and existing, the second is automatically player company Quote Link to comment Share on other sites More sharing options...
die7 Posted December 13, 2019 Share Posted December 13, 2019 the solution for your idea could be found in (team) search and rescue.gtf, I think this is the nearest solution Quote Link to comment Share on other sites More sharing options...
Jack Wachter Posted December 13, 2019 Author Share Posted December 13, 2019 8 hours ago, die7 said: the first script is ok, it's a typical firefight with 50 enemies and it works, the second one can not work, afaik just one opfor company can be spawned and existing, the second is automatically player company It works actually, the only issue I have is attaching a CompanyRef to the second use of it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.