This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10004 for ps


Ignore:
Timestamp:
08/13/11 02:54:24 (13 years ago)
Author:
ben
Message:

Adjusts random map starting entities to face consistent direction.

Location:
ps/trunk/binaries/data/mods/public/maps/random
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/maps/random/cantabrian_highlands.js

    r9760 r10004  
    137137   
    138138    // create the TC
    139     var group = new SimpleGroup(    // elements (type, min/max count, min/max distance)
    140         [new SimpleObject(civEntities[0].Template, 1,1, 0,0)],
     139    var group = new SimpleGroup(    // elements (type, min/max count, min/max distance, min/max angle)
     140        [new SimpleObject(civEntities[0].Template, 1,1, 0,0, 0.75*PI, 0.75*PI)],
    141141        true, null, ix, iz
    142142    );
     
    145145    // create starting units
    146146    var uDist = 8;
    147     var uAngle = playerAngle[i] + PI + randFloat(-PI/8, PI/8);
     147    var uAngle = -0.75*PI + randFloat(-PI/8, PI/8);
    148148    for (var j = 1; j < civEntities.length; ++j)
    149149    {
  • ps/trunk/binaries/data/mods/public/maps/random/latium.js

    r9555 r10004  
    418418   
    419419    // create the TC
    420     var group = new SimpleGroup(    // elements (type, min/max count, min/max distance)
    421         [new SimpleObject(civEntities[0].Template, 1,1, 0,0)],
     420    var group = new SimpleGroup(    // elements (type, min/max count, min/max distance, min/max angle)
     421        [new SimpleObject(civEntities[0].Template, 1,1, 0,0, 0.75*PI, 0.75*PI)],
    422422        true, null, ix, iz
    423423    );
     
    426426    // create starting units
    427427    var uDist = 8;
    428     var uAngle = randFloat(0, TWO_PI);
     428    var uAngle = -0.75*PI + randFloat(-PI/8, PI/8);
    429429    for (var j = 1; j < civEntities.length; ++j)
    430430    {
  • ps/trunk/binaries/data/mods/public/maps/random/neareastern_badlands.js

    r9470 r10004  
    112112   
    113113    // create the TC
    114     var group = new SimpleGroup(    // elements (type, min/max count, min/max distance)
    115         [new SimpleObject(civEntities[0].Template, 1,1, 0,0)],
     114    var group = new SimpleGroup(    // elements (type, min/max count, min/max distance, min/max angle)
     115        [new SimpleObject(civEntities[0].Template, 1,1, 0,0, 0.75*PI, 0.75*PI)],
    116116        true, null, ix, iz
    117117    );
     
    120120    // create starting units
    121121    var uDist = 8;
    122     var uAngle = playerAngle[i] + PI + randFloat(-PI/8, PI/8);
     122    var uAngle = -0.75*PI + randFloat(-PI/8, PI/8);
    123123    for (var j = 1; j < civEntities.length; ++j)
    124124    {
  • ps/trunk/binaries/data/mods/public/maps/random/new_rms_test.js

    r9909 r10004  
    4949   
    5050    // create the TC
    51     var group = new SimpleGroup(    // elements (type, min/max count, min/max distance)
    52         [new SimpleObject(civEntities[0].Template, 1,1, 0,0)],
     51    var group = new SimpleGroup(    // elements (type, min/max count, min/max distance, min/max angle)
     52        [new SimpleObject(civEntities[0].Template, 1,1, 0,0, 0.75*PI, 0.75*PI)],
    5353        true, null, ix, iz
    5454    );
     
    5757    // create starting units
    5858    var uDist = 8;
    59     var uAngle = playerAngle[i] + PI + randFloat(-PI/8, PI/8);
     59    var uAngle = -0.75*PI + randFloat(-PI/8, PI/8);
    6060    for (var j = 1; j < civEntities.length; ++j)
    6161    {
Note: See TracChangeset for help on using the changeset viewer.