Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: easily placed extra civilians
Re: New feature: easily placed extra civilians[message #344856 is a reply to message #344853] Sun, 03 April 2016 23:56 Go to previous messageGo to previous message
CVB is currently offline CVB

 
Messages:129
Registered:September 2014
Location: Berlin
Extremely useful information re: spawning behaviour, random locations, attributes, creating armed civilians and and checking game facts. Thanks a lot!

Edit: since later edits don't show up as unread and tend not to be seen, I'll rather write an additional post

Flugente wrote on Sun, 03 April 2016 21:46

As for making a group hostile, that might already be in lua, not sure.


I looked a bit more deeply, and it seems like that's true

from ExplosionControl.lua:
SetCivGroupHostile( Group.KINGPIN_CIV_GROUP , Civ_status.CIV_GROUP_HOSTILE )
		
for iLoop = GetTacticalStatusFirstID(Team.CIV_TEAM),GetTacticalStatusLastID(Team.CIV_TEAM) do
	if ( CheckMercPtrsInSector (iLoop) == true and CheckMercPtrsInActive(iLoop) == true and CheckMercPtrsInCivilianGroup (iLoop) ==
           Group.KINGPIN_CIV_GROUP ) then
		for aimLoop=GetTacticalStatusFirstID(Team.OUR_TEAM),GetTacticalStatusLastID(Team.OUR_TEAM) do
			if ( CheckMercPtrsID1SeenID2(iLoop,aimLoop) == SEEN_CURRENTLY ) then
				MakeMercPtrsHostile( iLoop )
			end
		end	
	end	
end
 
if ( CheckCombatMode == false ) then
	EnterTeamCombatMode(Team.CIV_TEAM)
end	



[Updated on: Tue, 05 April 2016 09:51]




Peace is a purely theoretical state of affairs whose existence we deduce because there have been intervals between wars.
J. Pournelle

Report message to a moderator

Sergeant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: combat jeeps
Next Topic: Ancient feature: sexism, racism, cursing the french and other human relations
Goto Forum:
  


Current Time: Mon Dec 02 05:46:46 GMT+2 2024

Total time taken to generate the page: 0.01129 seconds