Author Topic: Proper instastly primed granades  (Read 2683 times)

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Proper instastly primed granades
« on: July 03, 2022, 02:03:24 am »
Currently granades that primed instantly are technically shots: see screenshot.

Suggestion: add prime+throw single action (without priming screen).

For example it may be made by adding 'costPrimeThrow' parameter to ruleset. In that case object is thrown as normal granage, no priming screen, explodes on landing
Or perhaps by adding sub-parameter to 'costPrime' 'throwImmediately=True|False' for same purpose. First option seems more valid, but ofc actual implementation up to developers.

If that already been proposed, excuse me, but I have not found such request.
« Last Edit: July 03, 2022, 02:07:36 am by x-com_player »

Offline Fomka

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: Proper instastly primed granades
« Reply #1 on: July 03, 2022, 02:10:06 pm »
Currently granades that primed instantly are technically shots: see screenshot.

Suggestion: add prime+throw single action (without priming screen).

Currently flashbang grenade in X-Com Files mod work this way: you issue a single command and it goes off after a throw. Did you see that?

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Proper instastly primed granades
« Reply #2 on: July 03, 2022, 06:14:35 pm »
Currently flashbang grenade in X-Com Files mod work this way: you issue a single command and it goes off after a throw. Did you see that?

No I have not. Probably its also a shot, not a granade, like molotov cocktail on screenshot.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11452
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Proper instastly primed granades
« Reply #3 on: July 03, 2022, 06:58:34 pm »
No I have not. Probably its also a shot, not a granade, like molotov cocktail on screenshot.

Yes, it's a firing weapon.

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: Proper instastly primed granades
« Reply #4 on: July 03, 2022, 09:43:30 pm »
Technically this is already possible, probaby script are needed to pre-prime every grenade and make it trigger explosion only on throw.

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Proper instastly primed granades
« Reply #5 on: July 03, 2022, 10:52:50 pm »
Technically this is already possible, probaby script are needed to pre-prime every grenade and make it trigger explosion only on throw.

Soldiers death will cause explosion, also putting it onto ground...

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: Proper instastly primed granades
« Reply #6 on: July 04, 2022, 11:01:30 am »
Did you read what I write?

"trigger explosion only on throw."

Offline LuckyClover

  • Captain
  • ***
  • Posts: 73
  • Trying my best :)
    • View Profile
Re: Proper instastly primed granades
« Reply #7 on: July 04, 2022, 07:16:05 pm »
So it would only cost time units of throw or cost of priming granade would be added to throwing?

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Proper instastly primed granades
« Reply #8 on: July 04, 2022, 08:41:11 pm »
Did you read what I write?

"trigger explosion only on throw."

Sorry, have not realized that. But in any case that is more a workaround rather a good solution and unfortunately I really dont know how exactly write such script.

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: Proper instastly primed granades
« Reply #9 on: July 04, 2022, 09:17:35 pm »
There are already couple of example of scripts that have similar function, if you find correct one you probably could copy-paste it to your mod.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1116
    • View Profile
Re: Proper instastly primed granades
« Reply #10 on: July 20, 2022, 11:05:50 am »
Currently granades that primed instantly are technically shots: see screenshot.

Suggestion: add prime+throw single action (without priming screen).
Why is this needed? What is the benefit of this?

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Proper instastly primed granades
« Reply #11 on: July 21, 2022, 06:46:48 pm »
Why is this needed? What is the benefit of this?

Granade throwing would be more logical and easier to use ;)