lfnetwork.com mark read register faq members calendar

Thread: Laming Protect
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-23-2012, 10:28 AM   #1
Darth*krisz
Rookie
 
Darth*krisz's Avatar
 
Join Date: Jan 2012
Location: Venator-C Class Star Destroyer
Posts: 14
Current Game: Jedi Academy,Jedi Outcast
Laming Protect

Hello.
I need a little help.I need a chat protect code.
Please if some body know please help me
Darth*krisz is offline   you may: quote & reply,
Old 09-30-2012, 04:30 PM   #2
Fighter298
Lurker
 
Join Date: Oct 2011
Posts: 2
Here's what was done in Legacy OJP. I made a small modification so you can still be damaged in a duel.

In bg_pmove.c, in the void PmoveSingle (pmove_t *pmove) function change this:

Code:
// set the talk balloon flag
	if ( pm->cmd.buttons & BUTTON_TALK ) {
		pm->ps->eFlags |= EF_TALK;
	} else {
		pm->ps->eFlags &= ~EF_TALK;
	}
to this:
Code:
// set the talk balloon flag
	if ( pm->cmd.buttons & BUTTON_TALK ) {
		pm->ps->eFlags |= EF_TALK;
		if ( !pm->ps->duelInProgress )
		{
			pm->ps->eFlags |= EF_INVULNERABLE;
		}
	} else {
		pm->ps->eFlags &= ~EF_TALK;
		if ( !pm->ps->duelInProgress )
		{
			pm->ps->eFlags &= ~EF_INVULNERABLE;
		}
	}
If you don't want the green bubble to appear when you are chatting, modify this code in cg_players.c in the void CG_Player( centity_t *cent ) function from:
Code:
if (cent->currentState.eFlags & EF_INVULNERABLE)
	{
		CG_DrawPlayerSphere(cent, cent->lerpOrigin, 1.0f, cgs.media.invulnerabilityShader );
	}
To this:
Code:
if (cent->currentState.eFlags & EF_INVULNERABLE)
	{
		if ( !(cent->currentState.eFlags & EF_TALK) )
		{
			CG_DrawPlayerSphere(cent, cent->lerpOrigin, 1.0f, cgs.media.invulnerabilityShader );
		}
	}
Fighter298 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Laming Protect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:45 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.