Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 04-24-2008, 03:02 AM   #1
Damascus
Comic Artist
D&A Member
 
Damascus's Avatar
 
Join Date: Jan 2008
Posts Rated Helpful 0 Times
Surfing?

Is there any way to make surfing maps for FF? Just recently, I got interested in surfing
__________________
Damascus is offline   Reply With Quote


Old 04-24-2008, 03:10 AM   #2
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
oh please god somebody say no!

Sadly though I have surfed in tfc...I'm sure you can in FF...
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-24-2008, 03:12 AM   #3
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
I've made a few jumps for my own FF surf map actually. Heres the base_surf.lua I created based off of the conc LUA:
Code:
-- Allows for freestyle or racing.
-- No damage from anything and explosions won't move players.
-- Air accelerate always at 100.
-- All grenades, buildables, and spammable ammo removed at spawn.

-- base_surf.lua - Created By: Jester
-- Version 1.0b

---------------------------------
-- DEFAULTS (CHANGEABLE)
---------------------------------

-- Freestyle / Race modes.
SURF_MODE = SURF_FREESTYLE

-- Race Restart Delay
RESTART_DELAY = 10

-- Points and Frags you receive for touching EndZone.
SURF_POINTS = 110
SURF_FRAGS = 10

-- Disable/Enable classes allowed.
SCOUT = 0
SNIPER = 0
SOLDIER = 0
DEMOMAN = 0
MEDIC = 0
HWGUY = 0
PYRO = 0
SPY = 1
ENGINEER = 0
CIVILIAN = 0

-- Disable/Enable Invunerability
INVUL = 1


---------------------------------
-- DO NOT CHANGE THESE
---------------------------------
SetConvar( "sv_airaccelerate", 100 )
reached_end = 0
SURF_FREESTYLE = 0
SURF_RACE = 1
---------------------------------


function startup()

	SetTeamName( Team.kBlue, "Blue Surfers" )
	SetTeamName( Team.kRed, "Red Surfers" )

	SetPlayerLimit( Team.kBlue, 0 )
	SetPlayerLimit( Team.kRed, 0 )
	SetPlayerLimit( Team.kYellow, -1 )
	SetPlayerLimit( Team.kGreen, -1 ) 
	
	-- BLUE TEAM
	local team = GetTeam( Team.kBlue )
	team:SetAllies( Team.kRed )
	
	ShouldEnableClass( team, SCOUT, Player.kScout )
	ShouldEnableClass( team, SNIPER, Player.kSniper )
	ShouldEnableClass( team, SOLDIER, Player.kSoldier )
	ShouldEnableClass( team, DEMOMAN, Player.kDemoman )
	ShouldEnableClass( team, MEDIC, Player.kMedic )
	ShouldEnableClass( team, HWGUY, Player.kHwguy )
	ShouldEnableClass( team, PYRO, Player.kPyro )
	ShouldEnableClass( team, SPY, Player.kSpy )
	ShouldEnableClass( team, ENGINEER, Player.kEngineer )
	ShouldEnableClass( team, CIVILIAN, Player.kCivilian )
	
	
	-- RED TEAM
	team = GetTeam( Team.kRed )
	team:SetAllies( Team.kBlue )
	
	ShouldEnableClass( team, SCOUT, Player.kScout )
	ShouldEnableClass( team, SNIPER, Player.kSniper )
	ShouldEnableClass( team, SOLDIER, Player.kSoldier )
	ShouldEnableClass( team, DEMOMAN, Player.kDemoman )
	ShouldEnableClass( team, MEDIC, Player.kMedic )
	ShouldEnableClass( team, HWGUY, Player.kHwguy )
	ShouldEnableClass( team, PYRO, Player.kPyro )
	ShouldEnableClass( team, SPY, Player.kSpy )
	ShouldEnableClass( team, ENGINEER, Player.kEngineer )
	ShouldEnableClass( team, CIVILIAN, Player.kCivilian )

end

function ShouldEnableClass( team, classtype, class )
	if classtype == 1 then
		team:SetClassLimit( class, 0 )
	else
		team:SetClassLimit( class, -1 )
	end
end


-----------------------------------------------------------------------------
-- Invul Check
-----------------------------------------------------------------------------
function player_ondamage( player, damageinfo )
	
	if INVUL == 1 then
		local damageforce = damageinfo:GetDamageForce()
		damageinfo:SetDamageForce(Vector( 0, 0, 0 ))
		damageinfo:SetDamage( 0 )
	end
end


-----------------------------------------------------------------------------
-- Ammo Check
-----------------------------------------------------------------------------
function player_spawn( player_entity )
	local player = CastToPlayer( player_entity )
	player:AddHealth( 400 )
	player:AddArmor( 400 )

	-- Remove items (similar to both teams)
	player:AddAmmo( Ammo.kGren1, -4 )
	player:AddAmmo( Ammo.kGren2, -4 )
	player:RemoveAmmo( Ammo.kManCannon, 1 )
	player:AddAmmo( Ammo.kRockets, -300 )
	player:AddAmmo( Ammo.kCells, -300 )

	-- Add items (similar to both teams)
	player:AddAmmo( Ammo.kShells, 200 )
	player:AddAmmo( Ammo.kNails, 200 )

end


-----------------------------------------------------------------------------
-- Precache Sounds
-----------------------------------------------------------------------------

function precache()
	PrecacheSound("yourteam.flagcap")
	PrecacheSound("misc.doop")
end


-----------------------------------------------------------------------------
-- End Zone Entity
-----------------------------------------------------------------------------

endzone = trigger_ff_script:new()

function endzone:ontouch( touch_entity )

	if SURF_MODE == SURF_RACE then
		if reached_end == 0 and IsPlayer( touch_entity ) then
			local player = CastToPlayer( touch_entity )

			ConsoleToAll( player:GetName() .. " reached the endzone!" )
			BroadCastMessage( player:GetName() .. " reached the endzone!" )
		
			SmartSound(player, "yourteam.flagcap", "yourteam.flagcap", "yourteam.flagcap")
			
			player:AddFrags( SURF_FRAGS )
			player:AddFortPoints( SURF_POINTS, "Reached Endzone" )
			reached_end = 1
			
			AddSchedule( "RestartRace", RESTART_DELAY, RestartRace )
		end
	else
		if IsPlayer( touch_entity ) then
			local player = CastToPlayer( touch_entity )
		
			SmartSound(player, "misc.doop", "", "")
			
			player:AddFrags( SURF_FRAGS )
			player:AddFortPoints( SURF_POINTS, "Reached Endzone" )
			
			RestartPlayer( player )
		end
	end
end

function RestartRace()
	ApplyToAll({ AT.kRemovePacks, AT.kRemoveProjectiles, AT.kRespawnPlayers, AT.kRemoveBuildables, AT.kRemoveRagdolls, AT.kStopPrimedGrens })
	reached_end = 0
end

function RestartPlayer( player )
	ApplyToPlayer( player, { AT.kRemovePacks, AT.kRemoveProjectiles, AT.kRespawnPlayers, AT.kRemoveBuildables, AT.kRemoveRagdolls, AT.kStopPrimedGrens })
end
Include that in your map's LUA and you should be able to surf just fine.

http://www.youtube.com/watch?v=nXxk2qLlTgY
You can adapt that tutorial to make a surf map for FF. Surfing is popular in CS:S, so it's just as possible here.

Last edited by Jester; 04-24-2008 at 03:18 AM.
Jester is offline   Reply With Quote


Old 05-01-2008, 09:24 PM   #4
Handym
I got some bread, bitch
 
Handym's Avatar
 
Join Date: Sep 2007
Location: Denmark
Posts Rated Helpful 0 Times
Send a message via MSN to Handym Send a message via Skype™ to Handym
Oh dear lord no. Please, any other game.. fine with me, but PLEASE save FF from this crap.
Handym is offline   Reply With Quote


Old 05-02-2008, 01:00 AM   #5
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
wtf is surfing??
__________________
-------------------------------FF_Rock2(WIP)------------------------------
---------------------------FF_RedGiant(Released)-------------------------
--------------------------FF_Fragzone_G(Released)------------------------
--------------------------FF_Civibash_G(Released)------------------------
-------------------FF_Conc_G1(WIP)--------------------
-------------------FF_Hollow_G(WIP)---------------------
GambiT is offline   Reply With Quote


Old 05-02-2008, 01:53 AM   #6
PartialSchism
Keep On Keepin' On
 
PartialSchism's Avatar
 
Join Date: Feb 2008
Location: Mississippi
Class/Position: Offense
Gametype: Fun
Affiliations: I'm bad at FF, and my customs suck
Posts Rated Helpful 0 Times
Send a message via AIM to PartialSchism
http://youtube.com/watch?v=q7P6QJ3IHb0

thats basic surfing on tfc
PartialSchism is offline   Reply With Quote


Old 05-02-2008, 02:57 AM   #7
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
um...no...
__________________
-------------------------------FF_Rock2(WIP)------------------------------
---------------------------FF_RedGiant(Released)-------------------------
--------------------------FF_Fragzone_G(Released)------------------------
--------------------------FF_Civibash_G(Released)------------------------
-------------------FF_Conc_G1(WIP)--------------------
-------------------FF_Hollow_G(WIP)---------------------
GambiT is offline   Reply With Quote


Old 05-02-2008, 03:36 AM   #8
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
This is not a thread asking if you want surfing to be around, it's asking how to make the maps.

KTHXBAI
Jester is offline   Reply With Quote


Old 05-02-2008, 04:06 AM   #9
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
^yes
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> 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 03:22 PM.


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