http://forums.fortress-forever.com/s...ad.php?t=20496
is rock2's download, and it comes with lua.
Use this:
Code:
IncludeScript("base_ctf")
red_flag = baseflag:new({ team = Team.kRed,
model = "models/keycard/keycard.mdl",
modelskin = 1,
name = "Red Flag",
hudicon = "hud_flag_red_new.vtf",
hudx = 5,
hudy = 150,
hudwidth = 70,
hudheight = 70,
hudalign = 1,
hudstatusicondropped = "hud_flag_dropped_red.vtf",
hudstatusiconhome = "hud_flag_home_red.vtf",
hudstatusiconcarried = "hud_flag_carried_red.vtf",
hudstatusiconx = 60,
hudstatusicony = 5,
hudstatusiconw = 15,
hudstatusiconh = 15,
hudstatusiconalign = 3,
objectiveicon = true,
touchflags = {AllowFlags.kOnlyPlayers,AllowFlags.kBlue,AllowFlags.kYellow,AllowFlags.kGreen}
})
blue_flag = baseflag:new({ team = Team.kBlue,
model = "models/keycard/keycard.mdl",
modelskin = 0,
name = "Blue Flag",
hudicon = "hud_flag_blue_new.vtf",
hudx = 5,
hudy = 80,
hudwidth = 70,
hudheight = 70,
hudalign = 1,
hudstatusicondropped = "hud_flag_dropped_blue.vtf",
hudstatusiconhome = "hud_flag_home_blue.vtf",
hudstatusiconcarried = "hud_flag_carried_blue.vtf",
hudstatusiconx = 60,
hudstatusicony = 5,
hudstatusiconw = 15,
hudstatusiconh = 15,
hudstatusiconalign = 2,
objectiveicon = true,
touchflags = {AllowFlags.kOnlyPlayers,AllowFlags.kRed,AllowFlags.kYellow,AllowFlags.kGreen}
})
redflag = red_flag
blueflag = blue_flag
It replaces the flag with the key, and also un-underscores it too if you don't use them.
The key model must come with FF L: