OpenXcom Forum

Modding => OpenXcom Extended => OXCE Support => Topic started by: The Martian on June 19, 2020, 03:26:43 am

Title: [Solved] Auto shot projectiles with followProjectiles is still moving the camera
Post by: The Martian on June 19, 2020, 03:26:43 am
(OXCE V6.5 2020-05-08)

I'm trying to use followProjectiles: as described in 'this thread (https://openxcom.org/forum/index.php/topic,8210.0.html)' to keep the camera in place while a flamethrower fires several times.

However the camera keeps moving even though followProjectiles: is set to false.

Here is the item's code:
Code: [Select]
- type: STR_EXAMPLE_FLAMETHROWER
    size: 0.2
    costBuy: 0
    costSell: 65000
    weight: 5
    bigSprite: 766
    floorSprite: 790
    handSprite: 3576
    bulletSprite: 5
    fireSound: 64
    hitSound: 12
    hitAnimation: 0
    power: 40
    damageType: 2
    blastRadius: 2
    clipSize: -1
    bulletSpeed: 50
    explosionSpeed: 10
    accuracyAuto: 20
    tuAuto: 35
    battleType: 1
    twoHanded: false
    maxRange: 9
    invWidth: 2
    invHeight: 3
    armor: 30
    confAuto:
      shots: 5
      name: STR_EXAMPLE_AUTO_SHOT
      ammoSlot: 0
      arcing: true
      followProjectiles: false
    attraction: 7
    blockBothHands: false
    listOrder: 119200

What am I doing incorrectly?
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: Meridian on June 20, 2020, 12:02:32 pm
attach the mod (or a link to it) and a save
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: The Martian on June 21, 2020, 12:36:56 pm
Here is a .Zip of the mod and a save game file from a battle where the camera shake was occurring.

I've been using the "New Battle" feature on the main menu, the saved game is from a freshly started round of that.

Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: Meridian on June 21, 2020, 07:22:43 pm
camera doesn't follow the projectiles in this case

it just centers on explosions when the projectiles disappear

I can try to disable that too
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: Meridian on June 21, 2020, 10:08:47 pm
You can try a new version here: https://lxnt.wtf/oxem/builds//Extended/Extended-6.5.5-fd29708fb-2020-06-21-win64.7z
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: The Martian on June 23, 2020, 05:08:19 am
That version appears to be for Windows 64Bit, I'm running Linux Mint and unfortunately I cannot test it.

Do you have a Linux compatible build of it?
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: Meridian on June 23, 2020, 09:44:24 am
Do you have a Linux compatible build of it?

https://lxnt.wtf/oxem/builds//Extended/Extended-6.5.5-fd29708fb-2020-06-21-bionic-x86_64.7z
Title: Re: (OXCE) Auto shot projectiles with followProjectiles: is still moving the camera.
Post by: The Martian on June 24, 2020, 01:47:52 pm
I just tried your new build and followProjectiles: false works perfectly with the flamethrower now.

Thank you! (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)