Jump to content

Animation when typing in MP?


Recommended Posts

Posted

Howdy. I was wanting to see if I could make a mod that implemented an animation (or at least a post) when you are typing something in the chat in MP. Is it possible? How easy would it be? I'd just be using a base animation really, just want to know if it's possible and how to do it. Cheers!

Posted

This sounds like it could be done using some code. It doesn't seem like it would be too difficult to do. I should have some free time tonight or tomorrow in which I'll try to look into this for you.

Posted

This sounds like it could be done using some code. It doesn't seem like it would be too difficult to do. I should have some free time tonight or tomorrow in which I'll try to look into this for you.

 

Thanks man, that would be great.

Posted

Untested, but give it a try and see if it works:

 

In bg_pmove.c under

	// set the talk balloon flag
	if ( pm->cmd.buttons & BUTTON_TALK ) {
		pm->ps->eFlags |= EF_TALK;
	} else {
		pm->ps->eFlags &= ~EF_TALK;
	}

Add

if ( pm->ps->eFlags & EF_TALK )
		PM_SetAnim(SETANIM_TORSO,BOTH_STAND1,SETANIM_FLAG_OVERRIDE, 100);

 

 

Replacing the "ANIM" with the animation you want.

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