Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 02-26-2008, 09:20 PM   #1
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
Disable "jump pad" via LUA

how to? whats the code?
__________________
-------------------------------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 02-26-2008, 09:34 PM   #2
Rutabeggar
D&A Member
 
Rutabeggar's Avatar
 
Join Date: Jun 2007
Posts Rated Helpful 0 Times
Dunno the code, but it should be removed altogether.
Rutabeggar is offline   Reply With Quote


Old 02-26-2008, 10:11 PM   #3
trepid_jon
Ray Ray Johnson
Fortress Forever Staff
 
trepid_jon's Avatar
 
Join Date: Feb 2005
Location: Dallas, TX
Class/Position: D Civilian
Gametype: Rocket Jousting
Affiliations: EAFD
Posts Rated Helpful 78 Times
Send a message via ICQ to trepid_jon Send a message via AIM to trepid_jon
You can disable them by removing and never giving kManCannon ammo.

You'd essentially have to add a RemoveAmmo in player_onspawn, and set your bag's mancannons variable to 0...and cap points...and whatever else gives mancannons.
__________________
Support FF:
Trepid
steamcommunity.com/id/trepid_jon/
trepid_jon is offline   Reply With Quote


Old 02-26-2008, 10:29 PM   #4
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
ok thanks.
__________________
-------------------------------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 02-27-2008, 03:19 PM   #5
DD`
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Code:
function player_spawn( player_entity )
	local player = CastToPlayer( player_entity )
	player:RemoveAmmo( Ammo.kManCannon, 1 )
end
Just incase you haven't worked it out yet.
DD` is offline   Reply With Quote


Old 02-27-2008, 03:53 PM   #6
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
You also need to edit these to not give mancannon ammo:

Code:
-----------------------------------------------------------------------------
-- Grenade Backpack
-----------------------------------------------------------------------------
grenadebackpack = genericbackpack:new({
	mancannons = 1,
	gren1 = 2,
	gren2 = 2,
	model = "models/items/backpack/backpack.mdl",
	materializesound = "Item.Materialize",
	respawntime = 30,
	touchsound = "Backpack.Touch",
	botgoaltype = Bot.kBackPack_Grenades
})

function grenadebackpack:dropatspawn() return false end
Code:
-----------------------------------------------------------------------------
-- Capture Points
-----------------------------------------------------------------------------
basecap = trigger_ff_script:new({
	health = 100,
	armor = 300,
	grenades = 200,
	shells = 200,
	nails = 200,
	rockets = 200,
	cells = 200,
	detpacks = 1,
	mancannons = 1,
	gren1 = 4,
	gren2 = 4,
	item = "",
	team = 0,
	botgoaltype = Bot.kFlagCap,
})
Either delete those or change to 0

They are in the base_teamplay.lua.
__________________
(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 02-28-2008, 05:48 AM   #7
greenday5494
Holy shit, thats kerrigan!
D&A Member
 
greenday5494's Avatar
 
Join Date: Sep 2007
Class/Position: D, whatever the team needs, usually engy
Gametype: AvD
Affiliations: None
Posts Rated Helpful 1 Times
anyway to return caltrops and scanner?
greenday5494 is offline   Reply With Quote


Old 02-28-2008, 06:41 AM   #8
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
no...I'm 99.9 % positive the devs have removed all commands associated with those.
__________________
(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 02-28-2008, 06:01 PM   #9
Jiggles
Retired FF Staff
 
Jiggles's Avatar
 
Join Date: Jan 2005
Location: CowTown
Posts Rated Helpful 0 Times
Radar is definitely gone, though I'm not exactly sure what AS did to disable caltrops...
Jiggles is offline   Reply With Quote


Old 03-07-2008, 10:53 PM   #10
Mr. Happy
FF LOL
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Why

Please say this isn't for rock2
Mr. Happy is offline   Reply With Quote


Old 03-17-2008, 05:01 PM   #11
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
i'm not going to disable it for Rock2, but there will be alot of places that you cant build them.
__________________
-------------------------------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 03-17-2008, 06:24 PM   #12
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
Quote:
Originally Posted by GambiT
i'm not going to disable it for Rock2, but there will be alot of places that you cant build them.
well then disabling them that way isn't the way to go...what you want / need to do is to nocannon code or some other clever name that mimics the noannoyances code.
__________________
(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 03-17-2008, 07:02 PM   #13
GambiT
Fortress Forever Staff
 
GambiT's Avatar
 
Join Date: Mar 2007
Location: Baton Rouge
Class/Position: Spy
Affiliations: -=DoM=-
Posts Rated Helpful 0 Times
nobuild "should" work, right??
__________________
-------------------------------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 03-17-2008, 07:14 PM   #14
greenday5494
Holy shit, thats kerrigan!
D&A Member
 
greenday5494's Avatar
 
Join Date: Sep 2007
Class/Position: D, whatever the team needs, usually engy
Gametype: AvD
Affiliations: None
Posts Rated Helpful 1 Times
then you have no SGs or disp being built there either
greenday5494 is offline   Reply With Quote


Old 03-17-2008, 07:18 PM   #15
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
Quote:
Originally Posted by greenday5494
then you have no SGs or disp being built there either
that and I don't know that nobuild covers jumppad...I'll check my 2.0 install and let you know though!

EDIT: Ok here is the code for a nobuild:

Code:
-----------------------------------------------------------------------------
-- No builds: area where you can't build
-----------------------------------------------------------------------------
nobuild = trigger_ff_script:new({})

function nobuild:onbuild( build_entity )
	return EVENT_DISALLOWED 
end

no_build = nobuild
so anytime someone tries to "build_entity" then it is denied. I don't have access to the game code but I would assume that the detpack and mancannon are built off of the same (or reletively close to each other) code b/c of the way they are "built" in game. I think that mancannonc and detpack are different then Sg / disp. in that they are not "build_entities" and are defined as something different (at least that's how I would do it!). I would assume it is coded under "explode_entity" with the same build mechanics as the detpack but with a different time (not custom) and cast to scout instead of to demo!

Again I wouldn't know without access to the game code cause I can't find that stuff in .lua as it's a core mechanic and not changeable AFAIK. But if it is an "explode_entity" then you would need a code like this:

Code:
-----------------------------------------------------------------------------
-- No Mancannon: Can not build a mancannon / jump pad
-----------------------------------------------------------------------------
nomancannon = trigger_ff_script:new({})

function nomancannon:onbuild( explode_entity )
	if IsMancannon( explode_entity ) then
		return EVENT_DISALLOWED
	end
	return EVENT_ALLOWED
end
again that's assuming the mancannon is defined as an explode_entity and not as a build_entity. If it's a build entity then you should just have to replace the explode part with build and that will solve it cause it will allow anything that is a "build_entity" as long as it is not Mancannon. Also my code might be wrong, but I'm about 95% confident that it is right.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:

Last edited by Dr.Satan; 03-17-2008 at 07:35 PM.
Dr.Satan is offline   Reply With Quote


Old 03-17-2008, 07:20 PM   #16
greenday5494
Holy shit, thats kerrigan!
D&A Member
 
greenday5494's Avatar
 
Join Date: Sep 2007
Class/Position: D, whatever the team needs, usually engy
Gametype: AvD
Affiliations: None
Posts Rated Helpful 1 Times
it does. congestues, made before 2.0, has a really annoying nobuild in the yard, and you cant build jumppads
greenday5494 is offline   Reply With Quote


Old 03-17-2008, 07:52 PM   #17
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
Ok...well if that's the case then you would need this (I think):

Code:
-----------------------------------------------------------------------------
-- No Mancannon: Can not build a mancannon / jump pad
-----------------------------------------------------------------------------
nomancannon = trigger_ff_script:new({})

function nomancannon:onbuild( build_entity )
	if IsMancannon( build_entity ) then
		return EVENT_DISALLOWED
	end
	return EVENT_ALLOWED
end
__________________
(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


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 10:55 PM.


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