View Issue Details

IDProjectCategoryView StatusLast Update
0008918Multi Theft Auto : San AndreasScriptingpublic2015-07-09 22:02
Reportereinheit-101Assigned ToJusonex 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version 
Target Version1.5Fixed in Version1.5 
Summary0008918: [Request] setCameraShakeLevel or setPlayerDrunkLevel
Description

Most of us know the effect in GTA SA when the player is drunk (camera swings around, vehicles are harder to control....). I wonder why this hasn't been added to MTA yet.

Additional Information

SAMP already has this, I think there should be an opcode for it.

http://wiki.sa-mp.com/wiki/SetPlayerDrunkLevel

I searched if this already has been requested but found nothing except forum topics about it.

TagsNo tags attached.

Activities

arranTuna

2015-07-08 13:12

manager   ~~0023564

Shader and screen source functions already let you do this.

Jusonex

2015-07-08 13:50

administrator   ~~0023567

For later use:

sbx320

2015-07-08 14:19

administrator   ~~0023568

Opcode 052C:
Sets player+68 to the drunk level (char)
Sets player+69 = 0
and calls CMBlur::ClearDrunkBlur (@0x071D780) which sets the float at 0xB7CB64 to 0.0f

Opcode 03FD:
Calls CPad::SetDrunkInputDelay(CPad* this, int delay) (@0x53F910) which sets CPad+116 to delay.

einheit-101

2015-07-08 16:58

reporter   ~~0023570

Interesting. This could be useful for role play servers or for me using it as sniper sway as long as setPedTargetPosition doesn't work for players. But it would be cool if it was possible to choose whether to enable or disable the color effect.

Jusonex

2015-07-09 21:58

administrator   ~~0023574

Fixed in https://github.com/multitheftauto/mtasa-blue/commit/ee95cfd450eee5aaf936c4511dc18e2e26132d2c

as long as setPedTargetPosition doesn't work for players.
https://wiki.multitheftauto.com/wiki/SetCameraTarget @ "Client 2"

Issue History

Date Modified Username Field Change