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:230
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]




I need more details. (Didi Hallervorden)

Latest JA2 v1.13 (SCI-maeyanie) Compiling Guide 7609 (eng) MapEditor+UB 8908
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

 
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]

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
sevenfm

 
Messages:2317
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&



7609+AI (r1705) | Unofficial modpack | Win8+ fix | Experimental project | Youtube | Trunk (r8908) | 1.13 Starter Docs

Кто в Москве не бывал, красоты не видал.


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

 
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.
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:230
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.



I need more details. (Didi Hallervorden)

Latest JA2 v1.13 (SCI-maeyanie) Compiling Guide 7609 (eng) MapEditor+UB 8908
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

 
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.
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:3542
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.


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:3542
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.


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

 
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?
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:3542
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.


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

 
Messages:230
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 ?



I need more details. (Didi Hallervorden)

Latest JA2 v1.13 (SCI-maeyanie) Compiling Guide 7609 (eng) MapEditor+UB 8908
Previous Topic: Pending Feature: Increased Team sizes
Next Topic: New feature: Administration assignment
Goto Forum:
  


Current Time: Sun Oct 25 01:41:21 EEST 2020

Total time taken to generate the page: 0.03222 seconds