lfnetwork.com mark read register faq members calendar

Thread: Wall run with weapons
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 02-12-2012, 11:43 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
Wall run with weapons

Hello.
I'm a big beginner in coder.I need some help.
My question is: How can i make it run on walls with weapons for example pistol and blaster???
Thanks your answer
Darth*krisz is offline   you may: quote & reply,
Old 02-12-2012, 07:57 PM   #2
-=*Raz0r*=-
Rookie
 
-=*Raz0r*=-'s Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 243
in bg_pmove.c, search for this block of code

Code:
	else if ( pm->cmd.upmove > 0 && pm->waterlevel < 2 &&
		pm->ps->fd.forcePowerLevel[FP_LEVITATION] > FORCE_LEVEL_0 &&
		!(pm->ps->pm_flags&PMF_JUMP_HELD) &&
		(pm->ps->weapon == WP_SABER || pm->ps->weapon == WP_MELEE) &&
		!PM_IsRocketTrooper() &&
		!BG_HasYsalamiri(pm->gametype, pm->ps) &&
		BG_CanUseFPNow(pm->gametype, pm->ps, pm->cmd.serverTime, FP_LEVITATION) )
Put '//' at the start of the line that checks the weapon, like so
Code:
// (pm->ps->weapon == WP_SABER || pm->ps->weapon == WP_MELEE)

-=*Raz0r*=- is offline   you may: quote & reply,
Old 02-13-2012, 08:58 AM   #3
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
Thank you -=*Raz0r*=-
Darth*krisz 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 > Wall run with weapons

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 03:13 AM.

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