TODO: 42%, needs quite a bit of work still. Thought this function was going to be an easy copy/paste like other register_tweak fn, but turning out to be harder to decipher than I anticipated so leaving it like this for now. */
| 347 | but turning out to be harder to decipher than I anticipated so leaving it like this for now. |
| 348 | */ |
| 349 | void tweak_group::register_tweaks(bool init, xModelAssetParam* ap, U32 apsize, const char* c) |
| 350 | { |
| 351 | if (init) |
| 352 | { |
| 353 | this->sound[0].volume = 0; |
| 354 | auto_tweak::load_param<F32, F32>(this->sound[0].volume, 1.0f, 0.0, 1.0f, ap, apsize, |
| 355 | "TODO1"); |
| 356 | } |
| 357 | |
| 358 | if (init) |
| 359 | { |
| 360 | this->sound[0].range_inner = 0; |
| 361 | auto_tweak::load_param<F32, F32>(this->sound[0].range_inner, 1.0f, 0.0, 1.0f, ap, apsize, |
| 362 | "TODO2"); |
| 363 | } |
| 364 | if (init) |
| 365 | { |
| 366 | this->sound[0].range_outer = 0; |
| 367 | auto_tweak::load_param<F32, F32>(this->sound[0].range_outer, 1.0f, 0.0, 1.0f, ap, apsize, |
| 368 | "TODO3"); |
| 369 | } |
| 370 | |
| 371 | if (init) |
| 372 | { |
| 373 | this->sound[0].delay = 0; |
| 374 | auto_tweak::load_param<F32, F32>(this->sound[0].delay, 1.0f, 0.0, 1.0f, ap, apsize, |
| 375 | "TODO4"); |
| 376 | } |
| 377 | if (init) |
| 378 | { |
| 379 | this->sound[1].volume = 0; |
| 380 | auto_tweak::load_param<F32, F32>(this->sound[1].volume, 1.0f, 0.0, 1.0f, ap, apsize, |
| 381 | "TODo5"); |
| 382 | } |
| 383 | if (init) |
| 384 | { |
| 385 | this->sound[1].range_inner = 0; |
| 386 | auto_tweak::load_param<F32, F32>(this->sound[1].range_inner, 1.0f, 0.0, 1.0f, ap, apsize, |
| 387 | "TODo6"); |
| 388 | } |
| 389 | |
| 390 | if (init) |
| 391 | { |
| 392 | this->sound[1].range_outer = 0; |
| 393 | auto_tweak::load_param<F32, F32>(this->sound[1].range_outer, 1.0f, 0.0, 1.0f, ap, apsize, |
| 394 | "todo7"); |
| 395 | } |
| 396 | if (init) |
| 397 | { |
| 398 | this->sound[1].delay = 0; |
| 399 | auto_tweak::load_param<F32, F32>(this->sound[1].delay, 1.0f, 0.0, 1.0f, ap, apsize, |
| 400 | "todo8"); |
| 401 | } |
| 402 | if (init) |
| 403 | { |
| 404 | this->sound[2].volume = 0; |
| 405 | auto_tweak::load_param<F32, F32>(this->sound[2].volume, 1.0f, 0.0, 1.0f, ap, apsize, |
| 406 | "todo9"); |