Jump to content

First Person Melee


Recommended Posts

Posted

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"?

Posted

Darn, I feel like I have the answer on the tip of my tongue, even though I know nothing about this stuff...wish I knew the answer to this.

Posted

I managed to allow first person for melee while removing the player model and slotting in an md3 view model. However it doesn't fire any animations like the other weapons. :\

Posted

Try looking at MapTorsoAnimToWeaponFrame (I think is what it's called?) in cg_weapons.c[pp]. You'll need to add cases for the melee anims (not sure what those are right off the top of my head)

Posted

 

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

Circa, Omicron, Stoiss and 2 others like this
Posted

use JA++ then hit p to toggle between first and third person.

This is for SP and for melee. First person melee doesn't exist anywhere else as far as I know.

  • 4 weeks later...
Posted

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.
Posted

Most of the edits I've done is a mix of luck and some help from others telling me what to search for lol. I highly doubt I could do those on the list, even though they would be cool. :P

Posted

 

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?

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...