Commit 83ca44a
authored
#### Summary
Add `VEHICLE_HAS_SIRENS` to Rhino (432) and Barracks (433) in
`g_ulVehicleAttributes` on both client and server, plus the
`gentable_vehattr` generator.
#### Motivation
Resolves #4899.
Both vehicles have functional sirens in vanilla SA, but `HasSirens()`
rejected them because the bit was missing from the attribute table. As a
result, `getVehicleSirensOn` returned `nil` and `setVehicleSirensOn` was
a no-op.
#### Test plan
1. Spawn a Rhino and a Barracks.
2. Run `setVehicleSirensOn(vehicle, true)`, then
`getVehicleSirensOn(vehicle)`. Expected: `true`.
3. Run `setVehicleSirensOn(vehicle, false)`, then
`getVehicleSirensOn(vehicle)`. Expected: `false`.
4. Confirm existing siren vehicles (e.g. Police 596, Ambulance 416,
Enforcer 427) still toggle correctly.
#### Checklist
* [x] Your code should follow the [coding
guidelines](https://wiki.multitheftauto.com/index.php?title=Coding_guidelines).
* [x] Smaller pull requests are easier to review. If your pull request
is beefy, your pull request should be reviewable commit-by-commit.
1 parent 13fddf7 commit 83ca44a
3 files changed
Lines changed: 4 additions & 2 deletions
File tree
- Client
- mods/deathmatch/logic
- utils/gentable
- Server/mods/deathmatch/logic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments