Vehicle spawner does strange things to weapons.

Discussion in 'Support' started by Empty, Aug 23, 2009.

  1. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    Depending on the vehicle, all MLs or Cannons fire from the same point, rather than MLs coming slightly offset, and on AFVs cannons can fire from the ML point.

    I noticed it on Fogcity, kinda weird shooting a salvo ML from teh med tanks barrel.
     
  2. Varbles

    Varbles Simply Maptastic. Staff Member

    Messages:
    2,093
    Likes Received:
    26
    Trophy Points:
    0
    Yeah I noticed it with an AFV the cannon and MG are offset by about a yard to the right of the barrel. It's really annoying and affects your aim a lot more than you'd imagine.
     
  3. Demented

    Demented Member

    Messages:
    2,337
    Likes Received:
    0
    Trophy Points:
    0
    It's not so much a strange thing as it is a limitation of the spawner. In the scripts, the weapon slots select specific 'bones' to fire from. The spawner doesn't let you do that, so they all fire from the first bone. It'd probably get fairly intricate to do it automatically...
     
  4. Dan911

    Dan911 Member

    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    well, this is a mus fix :)
     
  5. CyberKiller

    CyberKiller Nyooks!

    Messages:
    1,107
    Likes Received:
    8
    Trophy Points:
    0
    It can't be that hard to fix. D:
     
  6. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    I do lua, nothing is too hard to bugfix. If it's so broken that you need to rewrite the code from scratch then you shouldn't have coded so badly in the first place, and it would fuck you up later anyway.
     
  7. TheAmethystDuke

    TheAmethystDuke Member

    Messages:
    375
    Likes Received:
    0
    Trophy Points:
    0
    Apperently it has to do with in wich order you add the weapons. I have had MGs fire from the turrets and cannons from right(missile launcher). Just look it up in the vehicle scripts so it won't screw up,

    like if the first slot is a Cannon slot, the second an ML slot and the third a MG slot then put the weapon in that order(in the preset entity).

    In theory, that should fix it. I am going to test it.
     

Share This Page