Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var baseShip = 605;
- var shipTree = [];
- var Spectator_609 = '{"name":"Spectator","level":6,"model":9,"size":0.5,"specs":{"shield":{"capacity":[1000,1000],"reload":[1000,1000]},"generator":{"capacity":[1,1],"reload":[1,1]},"ship":{"mass":0,"speed":[150,150],"rotation":[200,200],"acceleration":[200,200]}},"bodies":{"main":{"section_segments":8,"offset":{"x":0,"y":35,"z":0},"position":{"x":[0,0,0,0,0,0],"y":[-100,-95,-20,0,30,25],"z":[0,0,0,0,0,0]},"width":[0,10,40,20,12,0],"height":[0,5,25,20,12,0],"texture":[10,11,4,13],"propeller":true},"cockpit":{"section_segments":8,"offset":{"x":0,"y":37,"z":10},"position":{"x":[0,0,0,0,0,0],"y":[-95,-40,-30],"z":[-8,-7,0,0,0,0]},"width":[9,30,10],"height":[0,25,10],"texture":[9],"propeller":false}},"typespec":{"name":"Spectator","level":6,"model":9,"code":609,"specs":{"shield":{"capacity":[1000,1000],"reload":[1000,1000]},"generator":{"capacity":[1,1],"reload":[1,1]},"ship":{"mass":0,"speed":[150,150],"rotation":[200,200],"acceleration":[200,200]}},"shape":[0.65,0.631,0.581,0.49,0.431,0.385,0.356,0.336,0.325,0.318,0.318,0.325,0.337,0.361,0.387,0.427,0.424,0.405,0.394,0.391,0.398,0.437,0.52,0.653,0.661,0.651,0.661,0.653,0.52,0.437,0.398,0.391,0.394,0.405,0.424,0.427,0.387,0.361,0.34,0.325,0.318,0.318,0.325,0.336,0.356,0.385,0.431,0.49,0.581,0.631],"lasers":[],"radius":20}}';shipTree.push(Spectator_609);
- var vocabulary = [
- { text: "Me", icon:"\u004f", key:"E" },
- { text: "You", icon:"\u004e", key:"O" },
- { text: "Winner", icon:"\u002e", key:"I" },
- { text: "Loser", icon:"\u002d", key:"L" },
- { text: "Wait", icon:"\u0046", key:"T" },
- { text: "Ready", icon:"\u0051", key:"R" },
- { text: "Attack", icon:"\u002b", key:"A" },
- { text: "GG", icon:"\u00a3", key:"G" },
- { text: "Duel", icon:"\u0059", key:"D" },
- { text: "?", icon:"\u004b", key:"Q" },
- { text: "Watch", icon:"\u00ae", key:"W" },
- { text: "Fight", icon:"\u00af", key:"X" },
- { text: "Yes", icon:"\u004c", key:"Y" },
- { text: "No", icon:"\u004d", key:"N" },
- { text: "Follow", icon:"\u0050", key:"F" },
- { text: "Begone", icon:"\u00a1", key:"B" }
- ] ;
- this.options = {
- // MATCH SETTINGS :
- map_name: "Dueling",
- //root_mode: "team",
- starting_ship: baseShip,
- starting_ship_maxed: true,
- max_level: 6,
- max_players: 200,
- //friendly_colors: 3,
- //survival_time: 999,
- //survival_level: 8,
- //mines_self_destroy: false,
- //mines_destroy_delay: 0,
- ships: shipTree,
- //reset_tree: true,
- weapons_store: false,
- //station_crystal_capacity: 0.1,
- vocabulary: vocabulary,
- //choose_ship: [102,103],
- // MAP SETTINGS :
- //map_size: mapSize,
- //map_id: 4971,
- crystal_value: 1,
- asteroids_strength: 1,
- //weapon_drop: 0,
- //friction_ratio: 1,
- //speed_mod: 1,
- //custom_map: initialMap,
- // SHIP SETTINGS :
- //shield_regen_factor: 1,
- //power_regen_factor: 1,
- //lives: 5,
- //healing_enabled: true,
- //healing_ratio: 1,
- //rcs_toggle: true,
- //radar_zoom: 1.2,
- };
- // me you winner loser
- // wait ready attack gg
- // duel hmm? watch fight
- // yes no follow begone
- // V C
- var toggle = {
- id: "toggle",
- position: [70,0,10,5],
- clickable: true,
- shortcut: "V",
- visible: true,
- components: [
- { type:"box",position:[0,0,100,100],stroke:"#EDC",width:4},
- { type: "text",position:[10,10,80,40],value:"Spectate",color:"#EDC"},
- { type: "text",position:[10,55,80,25],value:"[V]",color:"#EDC"}
- ]
- };
- var origin = {
- id: "origin",
- position: [60,0,10,5],
- clickable: true,
- shortcut: "C",
- visible: true,
- components: [
- { type:"box",position:[0,0,100,100],stroke:"#EDC",width:4},
- { type: "text",position:[10,10,80,40],value:"Origin",color:"#EDC"},
- { type: "text",position:[10,55,80,25],value:"[C]",color:"#EDC"}
- ]
- };
- this.event = function(event,game) {
- switch (event.name) {
- case "ui_component_clicked":
- var func = event.id;
- var ship = event.ship;
- switch (func) {
- case "toggle":
- if (ship.type == baseShip) {
- var chng = 609;
- }
- else {
- var chng = baseShip;
- }
- ship.set({type:chng});
- var up = (chng - (chng % 100)) / 100;
- ship.set({stats:(11111111 * up),crystals:(5*up*up*4)});
- break;
- case "origin":
- ship.set({x:0,y:0});
- break;
- }
- break;
- }
- };
- this.tick = function(game) {
- if ( game.step % 60 == 0 ) {
- for ( var a = 0 ; a < game.ships.length ; a++ ) {
- var ship = game.ships[a];
- if ( !ship.custom.start_ship_begun ) {
- ship.custom.start_ship_begun = true;
- ship.setUIComponent(toggle);
- ship.setUIComponent(origin);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement