OpenXcom Forum

Modding => Released Mods => The X-Com Files => Topic started by: betatester on December 20, 2019, 07:36:10 pm

Title: Shogg Lantern vs Flashlight
Post by: betatester on December 20, 2019, 07:36:10 pm
do shogg lantern illuminate better than flashlight ? if power stat is related to illumination power apparently no.
it is lighter but more cumbersome 1x2 vs 1x3
so I wonder if there's a mission where it could be useful (perhaps a mission where it could word when flashlight and night-vision tech is disabled, because it's too dark, too low under the earth, because of an emp wave and so on) or it's just  an item good to sell.
I also wonder if they work on polar, siberian mission... (I don't think the temperature issue is implemented but who knows...)

Just an idea.... make it a 1x2 item as powerfull as a flashlight but lighter.
Even a better idea shogg flashlights item that use a shogg lantern  for a cost similar of a flashlight to make a shogg flashlight 1x2 4kg same illumination (or better ?) than a flashlight and immunity of the object on possible electromagnetic dysfunction. The tech could also resolve the temperature issue.
 
And add a staff comment about the shogg lantern as alternative flashlight source

another idea is a night base defense mission (because alien launched an EMP on lights) that can be easier if you have developed the shogg illumination tech on your base allowing you to still have illuminaion after an EMP.
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch on December 24, 2019, 02:17:31 pm
It doesn't have to be better than a normal flashlight. Who said human tech must be worse than anything else? Also, denizens of Shogg are on average way stronger than humans, so they don't care much, and their lanterns don't require batteries (as they're pretty much living microbiomes which only need to be fed).

We could have a special condition where you can use the Shogg lantern but not the Mag-Lite, but I think it would be just annoying.
Title: Re: Shogg Lantern vs Flashlight
Post by: Hadriex on December 29, 2019, 05:48:13 pm
I was confused by the lantern at first too, kept trying to figure out what advantages it had before concluding it was identical in effect.

Simplest thing to clear up confusion is to just drop a line into it's description. Something about how amazing it would have been a few hundred years ago, but now humanity's got flashlights, which are superior.



How weird would it be if, instead of finding the shogg lantern in a cave, you found it in a museum storeroom. Still functional after hundreds of years, but not on display for whatever reason. Possible with some disturbing taxidermy that was supposedly found with it.
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch on December 29, 2019, 09:21:56 pm
Good idea, I'll do that.
Title: Re: Shogg Lantern vs Flashlight
Post by: Alazar on January 21, 2020, 05:43:21 am
You can throw Shogg lantern and it will still work, unlike flashlight. Works similar to flares but reusable after mission ends. Also, whats the point of both? Flares are the way to go.
Title: Re: Shogg Lantern vs Flashlight
Post by: Bananas_Akimbo on January 21, 2020, 01:44:29 pm
You're wrong. Flashlights also don't turn off, when on the ground. Whether you drop or throw them.
Worst of all, unlike flares they are turned on by default and so they illuminate your landing zone, if you leave them in your stash. (Never bring more, than you intend to equip on your soldiers.)

The advantage of flashlights over normal flares is, that they illuminate a greater area. And you can use them as a weapon.
So trace flares make them obsolete, in my opinion, if you can ever make enough.
Title: Re: Shogg Lantern vs Flashlight
Post by: Alazar on January 21, 2020, 04:28:22 pm
You're wrong. Flashlights also don't turn off, when on the ground. Whether you drop or throw them.
Worst of all, unlike flares they are turned on by default and so they illuminate your landing zone, if you leave them in your stash. (Never bring more, than you intend to equip on your soldiers.)

The advantage of flashlights over normal flares is, that they illuminate a greater area. And you can use them as a weapon.
So trace flares make them obsolete, in my opinion, if you can ever make enough.
My mistake about flashlights, but now we have "115 flares". Besides, you love charging headon with a flashlight? Kinda useless feature imo.
Also I absolutely hate using any kind of illumination, and now thanks to "Owl" rewards I dont need to bother about vision range, besides aliens dont have that big advantage in NV in X-Com1, unlike TFTD where you need to nearly bump into aliens to see them.
Title: Re: Shogg Lantern vs Flashlight
Post by: Bananas_Akimbo on January 21, 2020, 04:59:57 pm
Nah I only use flashlights in easy missions (like crop circles, cult apprehension, monsters without ranged attack), so I don't have to faff about with flares.
Flares are still pretty good, though, if you can deal with the extra hassle.
Title: Re: Shogg Lantern vs Flashlight
Post by: betatester on January 21, 2020, 06:30:31 pm
What I like about flashlight:
- You can drop them and they still illuminate. With a minigun or a pick axe you just have to drop them for 2 TU and you got your 2 hands free to fire or destroy rocks in cavern. You can't drop flares they don't illuminate you have to throw them and that costs more TU. Of course you are illuminated too but that's the price.
- You carry your light source with you very important in large maps or on several levels maps . No need to throw and taking back flares.
- If you illuminate a target you can use grenades and explosives on the target without destroying the light source
- As said above you can stun people with it. Not the best weapon but not useless
- You can turn off the light by putting them in belt, generally in the quick draw pocket. You have a better control of battlescape illumination.
- works well on hills where you are not always sure the flare will illuminate well the landscape
- Flying drone can carry one
- in case of emergency you can still throw them to illuminate away
Title: Re: Shogg Lantern vs Flashlight
Post by: Alex_D on January 21, 2020, 08:51:41 pm
About flashlights and other illumination devices.

For most of my campaign (against cultist humans) I used the Flashlight (FL) to lit large areas. My usual MO was to throw FL far away and hide in darkness taking potshots from. Electro-flares (3 wgt) were used to create an illuminated circle around my troops. The only disadvantage to this was the weight of 7 the FL as it required every participating soldier to carry one. Unused ones left on the ground (starting tile) of say, a car, chopper, land rover, etc, will illuminate the starting area, which was terrible in turn one.
Eventually the cults were defeated and aliens/hybrids were the main targets. They have better night vision, hence all of these battles are fought at day time.
Also better versions of the electro-flares (3 wgt) were discovered, such as trace-flare and the elerium flare (4 wgt). The latter can lit an area almost equal to a FL, if I remember correctly. The drawback is it needs to be thrown to activate, not just dropped as the FL. This means, I haven't sold my FLs just yet.
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch on January 23, 2020, 07:46:23 pm
I officially apologize that I can't make the flashlight be turned off and on. This would change everything.
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger on March 01, 2020, 06:03:26 am
I officially apologize that I can't make the flashlight be turned off and on. This would change everything.

What would have to be done to make it possible?

it feels like this should be fairly simple to code into the engine.
if electroflares could illuminate stuff once they were activated, even if they were still in your hand, and you could deprime them, then that would have the same functionality.
so once something like that is possible, then you could just make the flashlights like that.
or tying the flashlights to the vanilla personal lighting attribute?
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch on March 01, 2020, 06:06:51 pm
Well, if it's easy then it's great news! I wouldn't know, but feel free to give it a try. :)
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger on March 01, 2020, 09:14:32 pm
I don't know. I was hoping you could explain what the barriers were so we could convince meridian to make the necessary changes.
I was just laying out some possible ways it could be done if there were changes made to the engine that sound simple to me. (like allowing an item to have both melee and grenade properties at the same time)
but again I don't know. the closest thing to a mod i've done is copying and pasting other people's code.
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger on March 01, 2020, 10:27:24 pm
actually scratch that. I think I just did by giving it attributes of both the flare and a melee weapon.

XComFiles/Ruleset/items_XCOMFILES.rul:
Code: [Select]
# field equipment
  - type: STR_MAG_LITE
    ...
#Prime/Unprime segment
    costPrime:
      time: 3
    costUnprime:
      time: 3
    primeActionName: Turn On
    unprimeActionName: Turn Off
    fuseType: -2
    fuseTriggerEvents:
      defaultBehavior: true
      throwTrigger: false
...

I basically just copied the section specifying priming, fuses and triggers from the electroflare, reversed the trigger types (so that it's default is on rather than needing it to be thrown) and specified a prime and unprime cost (both 3% tus)

It seems to work perfectly.

[edit] cropped code so it's more obvious what I did. that bit can be thrown anywhere under the STR_MAG_LITE section in items_XCOMFILES.rul
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch 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?
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger 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.
Title: Re: Shogg Lantern vs Flashlight
Post by: HT 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...
Title: Re: Shogg Lantern vs Flashlight
Post by: Alex_D on March 02, 2020, 03:57:33 pm
Does the flashlight dissappears after the combat is over? (like the chemical [underwater] flare)
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger 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.
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger 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.
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch 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.
Title: Re: Shogg Lantern vs Flashlight
Post by: WaldoTheRanger 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.
Title: Re: Shogg Lantern vs Flashlight
Post by: Solarius Scorch 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!