View Issue Details

IDProjectCategoryView StatusLast Update
0007806Multi Theft Auto : San AndreasScriptingpublic2013-09-14 16:00
Reporter[THC]Lars-MarcelAssigned Tosbx320 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.4Fixed in Version1.4 
Summary0007806: isPedOnFire doesn't Works correctly
Description

If i set a Ped with setPedOnFire on Fire, then when the Ped is longer burning isPedOnFire return's that the Ped is on Fire...

Script: http://pastebin.com/b8m7v9kD

Server-Version: 1.3.3 (build 5624)

TagsNo tags attached.

Activities

[THC]Lars-Marcel

2013-09-02 21:57

viewer   ~~0019270

Sorry, i mean "If i set a Ped with setPedOnFire on Fire, then when the Ped is not longer burning isPedOnFire returns that the Ped is on Fire..."

sbx320

2013-09-08 22:53

administrator   ~~0019297

  • The "On Fire"-State was never synced for peds.
  • (Client) isPedOnFire returned the value set by setPedOnFire without checking if the ped was actually burning through GTA
  • (Server) isPedOnFire returned the value set by setPedOnFire. Also said value was never initialized in the constructor, so isPedOnFire on a newly spawned ped would often return a wrong value.

Fixed in r5801 (http://code.google.com/p/mtasa-blue/source/detail?r=5801).

A small note regarding the bugfix:
The state could've been transferred by setting a flag, but doing this wouldn't fit to the current codestyle and reduce readability of the code. That's why I decided to add an additional bit to the ped sync packet.

[THC]Lars-Marcel

2013-09-14 16:00

viewer   ~~0019325

Thanks for Fixxing.
Can you please add it already in the next Build/Version?

Issue History

Date Modified Username Field Change