| 1167 | } |
| 1168 | |
| 1169 | void init_hud() |
| 1170 | { |
| 1171 | // should use stbu here and save an addi instruction |
| 1172 | // which should also fix the rest of the function by correcting offsets |
| 1173 | |
| 1174 | hud.hiding = false; |
| 1175 | hud.alpha = 0.0f; |
| 1176 | hud.alpha_vel = 0.0f; |
| 1177 | hud.glow = 0.0f; |
| 1178 | hud.gizmos_used = 0; |
| 1179 | |
| 1180 | hud.model.reticle = load_model(xStrHash("ui_3dicon_reticle")); |
| 1181 | hud.model.target = load_model(xStrHash("ui_3dicon_target_lock")); |
| 1182 | hud.model.wind = load_model(xStrHash("ui_3dicon_missile_frame02")); |
| 1183 | |
| 1184 | hud.uv_wind.init(hud.model.wind->Data); |
| 1185 | hud.uv_wind.offset_vel.assign(current_tweak->hud.wind.du, current_tweak->hud.wind.dv); |
| 1186 | } |
| 1187 | |
| 1188 | bool uv_animated_model::init(RpAtomic* m) |
| 1189 | { |
no test coverage detected