View previous topic :: View next topic |
Author |
Message |
pjakub88
Junior Member


Joined: 05 May 2020 Posts: 43 Location: Poland 131 Bank Notes
Items
|
|
Hello everyone,
i just found a scripting bug in the mission 18 "Just for Relaxation".
You could kill all 6 guards standing near the 2 cars at the harbor entrance using baseball bat without raising any alarm at all. See picture below:
I know, that baseball bat is not considered a "weapon drawn" by the game engine (AI won't react while you have it equipped in your hands), so maybe that is the source of the problem. Is there any way to fix that? Like for example having a baseball bat in player's hands would be treated by AI as holding a firearm?
EDIT: The only solution that i found for this bug so far, was to simply re-position those guards, so player won't be able to sneak behind them and hit with baseball bat.

Last edited by pjakub88 on Sun Jun 21, 2020 7:46 pm; edited 5 times in total |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 211
440 Bank Notes
Items
|
|
Has this exploit been used by speedrunners before? |
|
Back to top |
|
 |
pjakub88
Junior Member


Joined: 05 May 2020 Posts: 43 Location: Poland 131 Bank Notes
Items
|
|
huckleberrypie wrote: | Has this exploit been used by speedrunners before? |
I don't know, since i never watched any Mafia speedrun. I don't like such things.
Anyway, i figured it out. I fixed the scripting bug.
I added few additional scripts based on a edited MISE18-PRISTAV script named "detector_alarm".
In each of those new scripts, when the player kills one of the 6 guards near the harbor entrance, their colleagues will immediately become hostile towards him. No more killing guards with baseball bat from behind with no reaction from the others standing nearby.
See pictures below:
 |
|
Back to top |
|
 |
Hunter
Senior Member


Joined: 21 Mar 2013 Posts: 421 Location: Eugene 2361 Bank Notes
Items
|
|
huckleberrypie wrote: | Has this exploit been used by speedrunners before? |
It's much faster to drive past them then spend time trying to stealthily neutralize them. |
|
Back to top |
|
 |
pjakub88
Junior Member


Joined: 05 May 2020 Posts: 43 Location: Poland 131 Bank Notes
Items
|
|
Hunter wrote: | huckleberrypie wrote: | Has this exploit been used by speedrunners before? |
It's much faster to drive past them then spend time trying to stealthily neutralize them. |
By the way the walking workers (pedestrians) are bugged too - often you can drive them over with a truck and no alarm will be raised...
By default the enemies are more concerned when you kill the warehouse manager - no matter if they see you doing that or not. There is a script for that called "detector_alarm". |
|
Back to top |
|
 |
Mnich
Site Staff


Joined: 05 Mar 2013 Posts: 263 Location: Poland 47073 Bank Notes
Items
|
|
I see that the problem is solved. I will lock this now.
In case you want to add something to the thread, let me know via PM. _________________
AsaSK wrote: | I thought there was something strange about naughtyboy (Cole Phelps).. apart from the fact that his username sounds very gay. |
|
|
Back to top |
|
 |
|
|