Author Topic: Shogg Lantern vs Flashlight  (Read 6188 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Shogg Lantern vs Flashlight
« Reply #15 on: March 02, 2020, 02:18:28 am »
Hmm, interesting. Can't really check right now, so can you let me know how you did this? When exactly does it turn on and off?

Offline WaldoTheRanger

  • Colonel
  • ****
  • Posts: 112
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #16 on: March 02, 2020, 03:53:13 am »
Oh, yeah.
I kind of explained how in the bottom of my last post. basically I added attributes of an electroflare to the item in the .rul file, then made it so it can be unprimed and defaults to being on rather than having to be thrown.

Click on it like you would do to throw it or hit someone with it to access the on and off button.

I'll just show the finished result:
https://www.bitchute.com/video/9ljccGXzm1v5/

I'll edit the code I posted to just the parts I actually changed.
« Last Edit: March 02, 2020, 04:17:59 am by WaldoTheRanger »

Offline HT

  • Colonel
  • ****
  • Posts: 456
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #17 on: March 02, 2020, 11:20:27 am »
Finally, XCOM unlocked the secrets of switchable flashlights. Perhaps this way it will justify their ridiculous price...

Offline Alex_D

  • Colonel
  • ****
  • Posts: 482
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #18 on: March 02, 2020, 03:57:33 pm »
Does the flashlight dissappears after the combat is over? (like the chemical [underwater] flare)

Offline WaldoTheRanger

  • Colonel
  • ****
  • Posts: 112
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #19 on: March 02, 2020, 09:03:49 pm »
I haven't tested that specifically as I've just been doing quick battles, but it shouldn't. I don't see anything in the code to indicate that it would act any different than regular electroflares in that regard, and I certainly didn't add that intentionally.

are the instructions I've given enough for you guys to paste it into your own install? I'm not able to do anymore testing right now.

Offline WaldoTheRanger

  • Colonel
  • ****
  • Posts: 112
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #20 on: March 02, 2020, 11:29:15 pm »
Tested. They don't disappear. you can prime them, drop them, throw them. they're still recoverable.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Shogg Lantern vs Flashlight
« Reply #21 on: March 08, 2020, 12:50:41 pm »
Whoa. This works! Thanks man, this is a major contribution to the mod.

I only wonder why the TU cost is 1 instead of 3.
« Last Edit: March 08, 2020, 12:53:23 pm by Solarius Scorch »

Offline WaldoTheRanger

  • Colonel
  • ****
  • Posts: 112
    • View Profile
Re: Shogg Lantern vs Flashlight
« Reply #22 on: March 08, 2020, 07:09:06 pm »
I think I set it to 3% TUs instead of 3 TUs. Not entirely sure how the syntax works.

Glad you found it useful.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Shogg Lantern vs Flashlight
« Reply #23 on: March 08, 2020, 07:22:21 pm »
I think I set it to 3% TUs instead of 3 TUs. Not entirely sure how the syntax works.

Yeah, could be. I'll experiment.

Glad you found it useful.

I certainly did!