Author Topic: [Solved] Show different bigob depending on soldier's gender  (Read 1715 times)

Offline Osobist

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Hello. Can we have a feature that would show different bigob depending on soldier's gender?

Examples of bigobs are below.

Spoiler:

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9144
    • View Profile
Re: [Suggestion] Add corpseMale and corpseFemale to armor
« Reply #1 on: July 02, 2023, 08:31:15 pm »
There is already a feature that can do that: Y-scripts.

PS:
We won't be adding new "traditional" ruleset attributes for features, which are scriptable, for 2 reasons:
1. doing something twice is a waste of time (both initial effort and maintenance effort)
2. and more importantly: we couldn't guarantee backwards-compatibility for the already-existing scripts
Or in other words, all oxce functionality that supports scripts will only be extended by extending script APIs... no new "traditional" ruleset will be added.

Offline Vakrug

  • Colonel
  • ****
  • Posts: 326
    • View Profile
Re: [Suggestion] Add corpseMale and corpseFemale to armor
« Reply #2 on: July 02, 2023, 11:55:42 pm »
There is already a feature that can do that: Y-scripts.
If this feature can draw different corpses depending on a gender, then is it possible to draw stunned dude differently from a dude teared apart by heavy plasma? If yes, then I have no Idea why modders haven't done that yet!
« Last Edit: July 02, 2023, 11:59:05 pm by Vakrug »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3375
    • View Profile
Re: [Suggestion] Add corpseMale and corpseFemale to armor
« Reply #3 on: July 03, 2023, 02:36:51 am »
It could even be changed based on damage type of last hit. Nearly any thing that was available other scripts can be used in determining what sprite should be used for given item.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11783
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Add corpseMale and corpseFemale to armor
« Reply #4 on: July 03, 2023, 02:02:37 pm »
If this feature can draw different corpses depending on a gender, then is it possible to draw stunned dude differently from a dude teared apart by heavy plasma? If yes, then I have no Idea why modders haven't done that yet!


Because modders generally can't write scripts.

Offline Vakrug

  • Colonel
  • ****
  • Posts: 326
    • View Profile
Re: [Suggestion] Add corpseMale and corpseFemale to armor
« Reply #5 on: July 05, 2023, 07:13:18 pm »
Because modders generally can't write scripts.
After some research I have noticed "extended --> scripts --> selectItemSprite --> YSCRIPT_CORPSE_SWITCHER" inside "XPiratez --> Ruleset --> Yankes_Scripts.rul".
I have not tested if this code really works, but it looks like it does exactly what we are discussing...