Spawn unit at 3D coordinate

Discussion in 'Mod Discussions' started by wondible, October 9, 2014.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    ...has probably been working since we got the create unit cheat.

    Code:
    model.send_message('create_unit', {
      army: 1,
      what: '/pa/units/land/assault_bot/assault_bot.json',
      planet: 0,
      location: {x:204, y:-26, z:326}
    })
    I think I finally understand @sorian 's confusion at our difficulty; the engine call handles 2D-3D conversion and then sends a 3D message, but messages can be sent directly as well. We just didn't know it was there.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    lol
    somebody build a defence vs waves map
    proeleert and Raevn like this.
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    How about this: You play as usual, but everytime you click or press a hotkey, it randomly spawns a unit somewhere.
    To ramp up the difficulty, after X clicks, the number spawned increases by 1.
    squishypon3, elodea and cwarner7264 like this.
  4. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    "Win with as few actions as possible." @elodea would be screwed.
    proeleert, squishypon3 and elodea like this.
  5. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    We can actually spawn a group of units somewhere and tell them to attack the player now using cheats.
  6. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Also @wondible - implications for the Puppetmaster mod?
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    No so sure about the attack-player part. Maybe with network logging or sniffing we could determine that the commands are being sent in 3D via a send_message compatible format, but they don't seem to be handled by the server JS. Or I guess there is the pip-center hack.
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    That's what I was thinking about. That hack works really well for my minimap experiments.
    proeleert likes this.
  9. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I'll have to work out some details - like how to get the location in the first place - but it should be possible to get the timing right.

    With a hacked server, you ought to be able to enforce the create-unit restrictions, and directly spawn the drop-pod effect without the drop-pod-launcher hack.
    cwarner7264 likes this.
  10. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    That sounds amazing. I think we're due another charity tournament some time soon? ;)
    proeleert and reptarking like this.
  11. reptarking

    reptarking Post Master General

    Messages:
    1,321
    Likes Received:
    1,577
    i say we go bigger, lets do more then a tournament!

Share This Page