Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Weapon viewmodel attachements.  (Read 1014 times)

0 Members and 1 Guest are viewing this topic.

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Weapon viewmodel attachements.
« on: January 20, 2015, 01:31:53 PM »
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:
Code: [Select]
...
"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:
Code: [Select]
...
"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.
« Last Edit: January 20, 2015, 01:34:56 PM by Counter-Life™ »

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Re: Weapon viewmodel attachements.
« Reply #1 on: January 20, 2015, 01:33:01 PM »
-snip-

tfw when you hit the quote button instead of the edit button.

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Weapon viewmodel attachements.
« Reply #2 on: January 20, 2015, 06:13:11 PM »
I made something like this a while ago for SMMOD (as a suggestion)
http://pastebin.com/sHqabCAQ
However, I would edit this (i'm too lazy right now) to feature a menu system into it. As in, its a menu you could say use the 12345 keys and select a body group. Lets say an acog is on the 1 key, everything else on the 1 key is disabled. Pretty much like Crysis.
MLG

Offline Bitl

  • *
  • *
  • +7% chance to make useful post
  • Bitl is working their way up.Bitl is working their way up.Bitl is working their way up.
Re: Weapon viewmodel attachements.
« Reply #3 on: January 20, 2015, 07:01:44 PM »
I'm actually thinking on adding multi-bodygroup, multi-subbodygroup/subgroup and skingroup support.
« Last Edit: January 20, 2015, 07:03:37 PM by Bitl »
FIREFIGHT RELOADED: GET IT NOW ON STEAM! http://store.steampowered.com/app/397680

crack tales, ooo-ooo

My Blog

"They are rage, brutal, without mercy. But you. You will be worse. Rip and tear, until it is don

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Weapon viewmodel attachements.
« Reply #4 on: January 20, 2015, 08:35:14 PM »
http://pastebin.com/YpgAUdBH
typed up a new concept, uses a hud window.

Text wrapping fucks the box up, download it and put it into notepad and make it fullscreen.



quick mockup ingame. made it paint, lel.
« Last Edit: January 20, 2015, 08:42:43 PM by Monkatraz »
MLG