View Issue Details

IDProjectCategoryView StatusLast Update
0009206Multi Theft Auto : San AndreasMulti Theft Auto : San Andreaspublic2017-03-28 22:53
ReporterZ_ReCAssigned ToJusonex 
PrioritynoneSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version 
Target Version1.5.4Fixed in Version1.5.4 
Summary0009206: [Request] Sniper resizes the moon [true/false] function
Description

A function to cancel resizing the moon sniper shot..
Trivial feature, but interesting!

TagsNo tags attached.

Activities

einheit-101

2016-04-04 08:27

reporter   ~~0024586

Last edited: 2016-04-04 08:27

View 2 revisions

setWorldSpecialPropertyEnabled ( "snipermoon“, false ) would fit but currently you could reset the size every time local player shoots.

Z_ReC

2017-03-20 16:55

reporter   ~~0025728

I did a little research and I came to a simple conclusion.
This part of assembler code corresponds to the change of size of the moon:

..check camara and others------
0x73ABCF jnz 0x10 (0x73ABE1)
0x73ABD1 mov edx, 0x8D4B60
0x73ABD7 inc edx
0x73ABD8 and edx, 0x7
0x73ABDB mov 0x8D4B60, edx
0x73ABE1 --------more code..

On 0x73ABCF 'jnz' (0x75) is responsible for hitting a jump in case the conditions are not met, now, if we change this instruction by 'jmp' (0xEB) we will be omitting the easter egg regardless of the result.

It work.

Jusonex

2017-03-28 22:53

administrator   ~~0025779

Fixed by Z_ReC in https://github.com/multitheftauto/mtasa-blue/commit/4cefab6ba6ef5e558dfcca4aa3f5548206d9fecb

Issue History

Date Modified Username Field Change