Jump to content

First Person Melee


DT.

Recommended Posts

Ok so I've been trying to stop the auto third person for melee from happening in OpenJK, and I have this:

 

x22q.jpg

 

Now how do I set different third person settings (range, etc) for just melee and not have it affect when the player goes into third person via "cg_thirdperson"?

Link to comment

 

https://www.youtube.com/watch?v=deHCQq3yEYQ

 

 

Things I did:

 

- removed the auto third person switch for WP_MELEE

- removed ammo count for WP_MELEE

- added BOTH_MELEE1, BOTH_MELEE2 & BOTH_STAND6 to "MapTorsoToWeaponFrame" in cg_weapons.cpp

- changed anim length & anim starts for BOTH_MELEE1 & BOTH_MELEE2 (to match up to the player animations) to work with a 36 frame MD3 file

 

 

The hit effect shows in the middle around the crosshair, which works.

 

 

Each arm is seperated, so I have:

 

fists.md3

fists_barrel.md3

 

Then of course, the animation:

 

fists_hand.md3

Omicron, Stoiss, Circa and 2 others like this
Link to comment
  • 4 weeks later...

Awesome work DT... you're becoming quite the coder.  Now you just need to spice things up by adding in more punching styles-- rather than just left or right hooks. 

 

Would like to see you add:

  1. Left and right straight jabs.
  2. Allow the punches to be thrown while doing the left or right torso dodge move.
  3. Add some lower body straight kicks
  4. Add some lower body roundhouse kicks to opponents knee joints.
  5. etc., etc., etc.
Link to comment

 

https://www.youtube.com/watch?v=deHCQq3yEYQ

 

 

Things I did:

 

- removed the auto third person switch for WP_MELEE

- removed ammo count for WP_MELEE

- added BOTH_MELEE1, BOTH_MELEE2 & BOTH_STAND6 to "MapTorsoToWeaponFrame" in cg_weapons.cpp

- changed anim length & anim starts for BOTH_MELEE1 & BOTH_MELEE2 (to match up to the player animations) to work with a 36 frame MD3 file

 

 

The hit effect shows in the middle around the crosshair, which works.

 

 

Each arm is seperated, so I have:

 

fists.md3

fists_barrel.md3

 

Then of course, the animation:

 

fists_hand.md3

Just me or do Kyle's hand have awesome quality?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...