Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: Disease
Re: New Feature: Disease[message #358369 is a reply to message #358359] Fri, 25 October 2019 21:28 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
Flugente wrote on Fri, 25 October 2019 00:22
As to the abovementioned sex (with a chance of STDs) thing, it is triggered by ACTION_ITEM_SEX in PerformItemAction in the script ExplosionControl.lua (yes, sex is initiated in a script originally intended for explosions. Where else? cool ). That part is ultimately called by the activation of an action item (#item 234) with the action ACTIONITEM_TOGGLE_DOOR (14, see the location of the aforementioned ACTION_ITEM_SEX ) set on the entrance tile of the hooker's room. As a result the sex is only initiated if you enter the room via the door.

I recall that this caused a problem when a random civilian wandered into the brothel at some point, because not properly initialized sex can crash the game.

However, worse is that the sex only works properly if the tiles of the action items are as expected in ModSettings.ini (see DOOR_TO_BAMBIS_ROOM etc.), otherwise proper sex won't happen. More than the three canonical hookers are not intended (amusingly though, the rooms are thus set, the hookers themselves aren't. The game considers any miniskirt-wearing woman a hooker.).

If you were to move the room to Brenda's house... hmm. That would work, but as Brenda would enter the room first... I guess she'd just try to fuck herself and close the door in front of you.

Hmm. As having the svn revision message Externalised whores sounds like the kind of thing I'd like to be remembered for, maybe I can tweak this.
What I did for Brenda-having-sex is:

Using the NPC-action #122 "NPC has Sex" in her npc-script. After the porn-shop sequence is finished and she is at home (Brenda at home) when a female is speaking to her (female speaking) and a certain item is given to her (I added another video-tape, named after one of those she mentioned to Hans) she moves to a tile (seemingly a certain tile is nescessary for this) in her bedroom and says a phrase hinting to follow her (took existing words/lines and tried to edit some useful stuff with audacity). When female player speaking friendly to her after she arrived at the tile the conditions for #122 (NPC has sex) are set fullfilled in the npc-record and the smiley is popping up.
So far everything went as planned, but then I saw that there is no morale-boost for sex and no chlamydia-infection happening.

If i understand your answer correct, for triggering sexual transmitted diseases the action-item is nescessary and since I used npc-script instead of the said action-item it won't trigger diseases. That's kinda sad, but at least I now know why it didn't happen, thanks.

The whole idea is inspired by/stolen from the character Svetja in Renegade Republic by Scorpion in whose npc-scripts I looked after I gave her a certain item. I found this way cool and thought about using this for Brenda to have an oportunity to make Madames words about her true. Whenever I think I might by ready for uploading stuff, I first have to ask Scorpion if he is ok with this.

As for the brothel: if the same roomnumbers are used, all rooms are connected and the grid-no for the girls doors are the same and action-items placed correctly behind doors it is possible to have another brothel in a different sector (plus san mona, not instead). I added another brothel in AR-city Estoni (bordertwon close to miltary town, there realy should be a brothel) and it seems to be working. I cloned and renamed Madame and Bill for testing, but if I realy end up using this I rather should do new voice-recordings, but it was allready difficult to find someone for other characters I had in mind (w.i.p. so far). In my test-runs, morale and disease worked this way.

If you ever find time/interest for "Externalized Whores" I'd be happy to try it out, for the sake of this name alone happy

[Updated on: Fri, 25 October 2019 21:32]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: New Feature: Disease[message #359627 is a reply to message #334916] Sat, 18 April 2020 17:12 Go to previous messageGo to next message
3-Spades is currently offline 3-Spades

 
Messages:9
Registered:April 2020
Hey guys,

Rookie here new to the forums. I have a few questions hoping I won't annoy anybody as I am new to JA2 and 1.13.

I have done a playthrough of 1.13, but on the very latest release 8776, which to my understanding is not the stable release. Was a fun playthrough for a first timer.

I then found out 7609 was the stable version and there was something called Arulco Revisted which sounded very nice. So I did a uninstall and then a clean installation ofboth 1.13 (from the 7609 modpack) which includes Arulco Revisted (1.4).

Now when I played 8776, all of Flugente's new developments were able for me to tweak via the JAoptions.ini. But I was wondering whether I could activate your new mods on a version that allows me to play Arulco Revisted? Does the new unstable versions (say 8776) allow me to play this AR mod? Or can I upgrade my current version (7609) to something higher but not so recent so that it still works with AR?

Ya dig what I'm sayin boys?

Edit - So yes, after posting this message I decided to try it out for myself. So I reapplied the 8776 installation I previously had and found that I could urn AR. There were a few bugs with merc voices during AIM purchase. When the first area Omerta loaded, some mercs were invisible even when moving around. Decided to now go back to the 7609 version to see whats up. May be because of the unstable versions. Dang I really wanted to implement disease and all the other bells and whistles.

Edit v2 - You're gonna think I'm some moron, but I went through the JAoptions.ini and found the disease section. Maybe it's supposed to be there for 7609, maybe not. Turned it on anyhow and now will try some stuffs.

[Updated on: Sat, 18 April 2020 19:05]

Report message to a moderator

Private
Re: New Feature: Disease[message #359628 is a reply to message #359627] Sat, 18 April 2020 18:38 Go to previous messageGo to next message
Deleted.

 
Messages:2657
Registered:December 2012
Location: Russian Federation
About Arulco Revisited on modern builds, you probably need to ask Mr Kitty here:
http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=358476&#msg_358476
or here
http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=19441&start=680&



Left this community.

Report message to a moderator

Lieutenant

Re: New Feature: Disease[message #359630 is a reply to message #359628] Sat, 18 April 2020 19:05 Go to previous messageGo to next message
3-Spades is currently offline 3-Spades

 
Messages:9
Registered:April 2020
Thank you Seven,
my regards to you and your family. Keep safe. And thank you for all your hard work.

Report message to a moderator

Private
Re: New Feature: Disease[message #359631 is a reply to message #359627] Sat, 18 April 2020 19:14 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
According AR for recent builds (unstable, not-7609, latest SCI - whatever you call it), it can be done, is not that complicated, but a lot of work and time.

Quote:
Dang I really wanted to implement disease and all the other bells and whistles.
That's exactly my thoughts happy

Many of the new features require changes in the xml and lua files, as well as some work with maps.
Therefore, when using AR with latest builds, some things are missing, some feature don't work and other things are just odd. For example, when a spy wants to hack a pc to get intel,
there are a few definitions in lua, xml needed, as well as correct placement of pc at map. Or for disease-feature, the related xml files as well as needed items in items.xml are missing (surgical gloves, etc. (resulting in shortage of ppe, which apparently is bad).

Since that is true for most new features, it takes time to first find and then apply changes. Plus, the most recent builds have seen updates to some files in game-dir as well, which then also have to be checked if relevant.

But, I'm working on this for some while now. I'd say I'm close to at least upload a w.i.p.-version for playtesting soon. Due to RL, I have less time now then I would like to, but check the link seven posted above for news.



How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: New Feature: Disease[message #359634 is a reply to message #359631] Sat, 18 April 2020 22:24 Go to previous messageGo to next message
3-Spades is currently offline 3-Spades

 
Messages:9
Registered:April 2020
Hey Mr Kitty,

thank you for your prompt and informative response. I will just go back and play AR on 7609 and enjoy it as it is.

My regards to you and your family too. Stay safe out there.

Report message to a moderator

Private
Re: New Feature: Disease[message #360410 is a reply to message #359634] Sat, 20 June 2020 18:56 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
https://i.imgur.com/AYUXQTl.png

As of r8826 and GameDir r2551, we can have multiple personalities at the same time (up to 32 to be precise). But how do we get them?

For this I added a new tag to Diseases.xml, <fSpecialFlagContractDisability>. Every time we are infected with a disease having this tag, a new disability we don't have yet is added.

Toggle Spoiler

So if our merc has a colourful stay in Arulco, things might get interesting. Provided it is so colourful that they get PTSD several times, that is.



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: New Feature: Disease[message #360451 is a reply to message #360410] Fri, 26 June 2020 01:31 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
As of r8828 & GameDir r2553, we've got a few nasty surprises to torment our mercs with. Also, before y'all ignore it, the new GameDir is required with that exe, as we get a new cursor.

First of all, the code now differentiate between fire damage and non-fire-based gas damages (mustard gas, creature gas, white phosphor, but not molotovs). This is put to good use, as we have two new diseases that we are guaranteed to receive (with stock settings) if we take damage from these sources:

Burns & Corroded Lungs

A single hit of these isn't too bad, but notice this gets worse every time you get hit with this. Granted, after taking 5 hits from fire you're likely dead anyway, but still, quite nasty.

Note that armour can nowadays have fire resistance, which lowers fire damage. This also applies to projectiles from the flamethrower (item #63), even if those are technically bullets. As a result, 100% fire resistance means no fire damage, which means you don't get Burns.

So far, so good. Now to the evil stuff.

Important disclaimer: As the following changes are likely controversial, they have a separate option, and are off by default. They have significant consequences. you have been warned.

The switch is a new setting in JA2_Options.ini:
; Unlocks more severe effects on some diseases. The possibilities include:
; - getting additional permanent disabilities
; - only one hand can be used for the duration of the disease
; - damage to the legs precludes kicking, running, and drastically increases travel times
; See Disease.xml for more details.
DISEASE_SEVERE_LIMITATIONS = FALSE
This also covers <fSpecialFlagContractDisability> from the previous post. Only by setting this to TRUE will the following things happen:

I've added two new tags which are used for Broken leg and Broken arm:

Broken leg & Broken arm

https://i.imgur.com/MyyY2Lv.png

If a disease your merc has has <fSpecialFlagLimitedUseLegs> set to 1, they cannot use their leg fully. This means:

  • they move visibly slower
  • the travel a lot slower in strategic
  • they can't use kicks in melee. This includes not being able to do the martial art spinkick, obviously
  • they cannot run. No matter how hard you press that [r] button, they will always walk. Slowly.
The justification being... your leg is broken. Fancy moves aren't happening until it is healed.

Different but equally bad is the <fSpecialFlagLimitedUseArms> tag. Mercs with that can only use one arm. You can actually see that in the first image of this post - Shepard can't put the Glock in her second hand. It is greyed out. This also prohibits her from equipping a twohanded weapon in her hands. And no, swapping weapons via portrait rightclick does not work here cheeky .
Since most of the weapons are twohanded... this will pose something of a problem I presume.

Again you can't doctor this, this needs to heal on its own. Luckily you can at least speed this process up: With a medical splint.

Medical splint

https://i.imgur.com/8dza5VF.png

This item can be applied by certified personnel (paramedics and doctors with new traits, anyone with MED > 50 with old traits) by applying the item (comes with it's own cursor):

https://i.imgur.com/52eaide.png

Once applied, it will either 'latch on' to the broken arm or the broken leg and double the regeneration rate. You can see which one it is healing in the first image.

As you can likely imagine, this can throw you off. A merc with one or both of these afflictions is likely to become a liability in combat.

Have fun big grin

[Updated on: Fri, 26 June 2020 01:45]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: New Feature: Disease[message #360456 is a reply to message #360451] Fri, 26 June 2020 21:13 Go to previous messageGo to next message
crackwise is currently offline crackwise

 
Messages:113
Registered:April 2013
Haha, really awesome! Do you intend to make blindness also more semi-permanent? I have no idea what would be the item to speed up recovery though - cool tea bath?

Report message to a moderator

Sergeant
Re: New Feature: Disease[message #360478 is a reply to message #360456] Tue, 30 June 2020 01:11 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
I imagine that would be darkly hilarious to see, the poor merc constantly stumbling around. Good thing we can nowadays drag them around.

But full blindness would be extremely limiting. Perhaps the effect of having one eye damaged for the duration would result in, say, very serious tunnel vision. But that's not that neat either, as minimum tunnelvison has to be 45 degree, and that is quite useful.

Hmm.

I like the idea, but can't see a good way to make it work.



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: New Feature: Disease[message #361357 is a reply to message #360478] Wed, 23 September 2020 09:50 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
Would it be possible to connect diseases to roomnumbers? There are a bunch of containers with the radioactive-sign to may justify this. And if an armour can be fireproof, why not an armour that lowers chance of radiation sickness ?


How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: New Feature: Disease[message #362820 is a reply to message #361357] Tue, 06 April 2021 23:49 Go to previous messageGo to next message
timujin is currently offline timujin

 
Messages:12
Registered:December 2018
Location: Here
Is there an issue with the very latest builds and the "Show disease Data" on the strategic map? I cannot seem to be able to view the number of bodies in a sector after killing the badies or to see wether its starting to become a biohazardous sector (the green color with disease probabilities)

Report message to a moderator

Private
Re: New Feature: Disease[message #366306 is a reply to message #362820] Thu, 07 November 2024 16:57 Go to previous message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
Some QOL change for disease feature:

As is widely known, when using the disease feature it's very helpfull to carry surgical mask and surgical gloves inside the inventory since those items do grant a certain amount of protection (details see Flugentes former posts above).
Thing is, that's two items and therefore two inventory slots and that's meh. What if there were a way to combine those? Hmm, let's make a PPE Bag ...

Details:

- added item "Empty PPE Bag"
- when attaching both, the surgical mask and surgical gloves, to that, it'll transform into a now filled "PPE Bag"
- this "PPE Bag" will hold both disease protection variations (one from mask, another from gloves) in one item
- compared to mask and gloves, this item is also more robust (damage resistant, waterproof)
- the "Empty PPE Bag" is for sale at BR (same as the mask and gloves)
- for the filled "PPE Bag" we either have to fill it ourself (by attaching mask and gloves to an empty one) or rely on local merchants
- a few filled "PPE Bag" can be bought from Rebel-Quartermaster and at Cambria Pharmacy, if ALLOW_EXTRA_CIVILIANS and ALLOW_EXTRA_MERCHANTS are TRUE
- also sold by Tina in Grumm (if Disease feature is used)
- replaced mask and gloves in Fox's Starting Gear sets with "PPE Bag", added one to a starting gear set of Stella (Doctor) and Hurl (Hypochondriac)

- thanks to rftr for code changes regarding the item-tags of disease-protection, wouldn't be possible without that
- has been added to gitHub and is part of release since 2024-11-07

Pictures:

Transforming
-
https://i.imgur.com/h7W4HKY.png
-
Shopping
-
https://i.imgur.com/9hNOGo7.png
-

[Updated on: Fri, 08 November 2024 04:02]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Previous Topic: New (unofficial) merc: Max Payne
Next Topic: Pending Feature: Increased Team sizes
Goto Forum:
  


Current Time: Thu Dec 12 03:11:24 GMT+2 2024

Total time taken to generate the page: 0.02202 seconds