Fortress Forever

Go Back   Fortress Forever > Editing > Modding

Reply
 
Thread Tools Display Modes
Old 06-11-2013, 03:13 PM   #1
NoirSuede
 
Join Date: Jun 2013
Gametype: Capture the Flag
Posts Rated Helpful 0 Times
Jump Autoqueue

Just wanna see the code that let's you hold space to continuously jump, maybe i can apply that to other source games.
NoirSuede is offline   Reply With Quote


Old 06-11-2013, 07:26 PM   #2
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Pretty sure it's as simple as commenting out this in CGameMovement::CheckJumpButton():

Code:
	if ( mv->m_nOldButtons & IN_JUMP )
		return false;		// don't pogo stick
__________________
#FF.Pickup ¤ Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 06-12-2013, 02:32 AM   #3
NoirSuede
 
Join Date: Jun 2013
Gametype: Capture the Flag
Posts Rated Helpful 0 Times
Where do you put that code?
NoirSuede is offline   Reply With Quote


Old 06-12-2013, 03:10 AM   #4
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
That piece is in the default Source SDK 2006/2007 code in gamemovement.cpp. You need to comment it out to enable autojump.

You have to have access to the game's C++ source code to do it. I'm not sure what you're looking for, exactly.
__________________
#FF.Pickup ¤ Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 06-12-2013, 06:19 AM   #5
NoirSuede
 
Join Date: Jun 2013
Gametype: Capture the Flag
Posts Rated Helpful 0 Times
Quote:
Originally Posted by squeek. View Post
That piece is in the default Source SDK 2006/2007 code in gamemovement.cpp. You need to comment it out to enable autojump.

You have to have access to the game's C++ source code to do it. I'm not sure what you're looking for, exactly.
I'm just basically finding a way to turn that line of code to a script so that i can use it for other source games.
NoirSuede is offline   Reply With Quote


Old 06-12-2013, 06:59 AM   #6
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Quote:
Originally Posted by NoirSuede View Post
I'm just basically finding a way to turn that line of code to a script so that i can use it for other source games.
I would assume the only way to do that would be through a server plugin, but I don't know much of anything about making one of those.

http://www.alliedmods.net/
__________________
#FF.Pickup ¤ Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington

Last edited by squeek.; 06-12-2013 at 07:00 AM.
squeek. is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.