Commit 6e31c86
authored
feat: include config side in :VEHICLE:CREATE: command (#82)
Adds `str side _x` as index [6] to the vehicle creation data sent to the
extension. This provides the vehicle's configured faction side (WEST,
EAST, GUER, CIV) at creation time, so the extension and web frontend
can display correct faction colors for vehicles even when their crew is
empty.
Previously, vehicle side was only available per-frame in :VEHICLE:STATE:
(index 11), and the JSON export hardcoded it as "UNKNOWN" on the entity
definition. This caused vehicles to render as black (dead) icons
whenever no crew was present.1 parent c5b18fe commit 6e31c86
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
0 commit comments