Changeset 632 for experiments/frams/capture-the-flag/data/scripts
- Timestamp:
- 11/09/16 04:35:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/capture-the-flag/data/scripts/capture-the-flag.expdef
r485 r632 21 21 function onExpDefLoad() 22 22 { 23 GenePools.clear();24 Populations.clear();25 26 23 World.wrldsiz = 100; 27 24 World.wrldtyp = 0; … … 56 53 function onBorn(cr) 57 54 { 58 cr.energ 0 = 100;59 cr.energy = cr.energ 0;55 cr.energy0 = 100; 56 cr.energy = cr.energy0; 60 57 } 61 58 … … 227 224 else if (crY > -5 && crY < 0) 228 225 crY = -5; 229 cr. moveAbs(flagsX[team] + crX, flagsY[team] + crY, 0);226 cr.locationSetBboxLow(flagsX[team] + crX, flagsY[team] + crY, 0); 230 227 cr.data->holding = 0; 231 228 cr.data->flag = 0; … … 262 259 var cr=pop[player]; 263 260 if (cr.data->holding == 1){ 264 cr.data->flag. moveAbs(cr.pos_x, cr.pos_y, cr.size_z + 1);261 cr.data->flag.locationSetBboxLow(cr.bboxLow.x, cr.bboxLow.y, cr.bboxSize.z + 1); 265 262 } 266 263 } … … 283 280 284 281 function placeFlag(flag){ 285 flag. moveAbs(flagsX[flag.population.index], flagsY[flag.population.index], 0);282 flag.locationSetBboxLow(flagsX[flag.population.index], flagsY[flag.population.index], 0); 286 283 } 287 284
Note: See TracChangeset
for help on using the changeset viewer.