add batch map conversion stage to find stray entities

find entities in the middle of 8x8 solid cubes

removed a few ents from depot and venison
This commit is contained in:
ac-stef
2017-05-06 19:37:36 +02:00
parent 5eec79d792
commit deafcaab00
3 changed files with 15 additions and 1 deletions
+15 -1
View File
@@ -24,7 +24,7 @@ if $execnumargs [
looplist "convmaplist m t" i [ tempalias $i ]
looplisti [ CMASTAGE CMAFIRSTERROR CMALASTERROR CMACOMMENT CMANUM ] n [ tempalias $n $i ]
tempalias cmstagenames [ NOP MAPCONFIG TRANSCLIP CLEANSLOTS FIXUNASSIGNEDS FIXBADENTS MANUALERRORS MANUALEDITING FIXPICKUPFHF ]
tempalias cmstagenames [ NOP MAPCONFIG TRANSCLIP CLEANSLOTS FIXUNASSIGNEDS FIXBADENTS MANUALERRORS MANUALEDITING FIXPICKUPFHF FINDSTRAYENTS ]
if (checkalias uncliptagclippedmodels) [ cmstagenames = (concat $cmstagenames REDUCECLIPS) ]
tempalias NUMSTAGES (listlen $cmstagenames)
looplisti $cmstagenames n [ tempalias $n $i ]
@@ -441,6 +441,20 @@ if (! (checkalias cmcur)) [ // execute this only once
]
]
const cm_dostage_FINDSTRAYENTS [ // find entities sitting in 8x8 solid cubes
looplist [playerstart pistol ammobox grenades health helmet armour akimbo ladder ctf-flag light mapmodel ] ent [
looplist (enumentities $ent) i [
push t 0
select (- (at (editentity $i) 1) 4) (- (at (editentity $i) 2) 4) 8 8
selectionwalk [ += t $sw_type ]
if (&& (! (pop t)) (strlen (selx))) [
addtodoentity $i "entity placed in solid cubes"
abort = 1
]
]
]
]
const cmfixmapmodelpaths [
push cnt 0
push ispre12 0
Binary file not shown.
Binary file not shown.