So yeah, every since I saw how useful bodygroups are in Crylife, I figured they could be useful in FIREFIGHT aswell.
My basic idea is that you have a basic viewmodel, as an example we will use the M4, which has various attachements like sights, barrel extensions blabla all in one model, and of course these are bodygrouped. The weapon script should allow us to toggle between those bodygroups.
Examples:
M4 with no attachements:
...
"weapon_bodygroups" {
"weapon_stock" "M4_standardstock" \\Or whatever the bodygroup is called
"weapon_sight" "M4_Ironsight"
"weapon_handguard" "M4_Stockguard"
"weapon_barrel" "M4_Stockbarell"
"weapon_magazine" "M4_30roundmag"
"weapon_grip" "M4_Stockgrip" \\Maybe something like an ergo grip that enhances accuracy? Or just cosmetic
}
...
M4 with various attachements:
...
"weapon_bodygroups" {
"weapon_stock" "M4_magpulstock"
"weapon_sight" "M4_Eotech"
"weapon_handguard" "M4_Slimhandguard"
"weapon_barrel" "M4_Stockbarell, M4_silencer"
"weapon_magazine" "M4_40roundmag"
"weapon_grip" "M4_ergogrip"
}
...
Of course, attachements like grenade launchers, "Masterkeys" and other attachements that require a new animation, would have a different base viewmodel wich has fitting animations.
I hope you get the idea I have, I think it's a great way to save filesize.
If you have questions, corrections or additions feel free to share them here.