Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 02-07-2008, 03:28 AM   #1
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.
Stopping/Freezing a player

Been tooling around with this, but I thought I'd see if I could get some input. Anyone know a way to stop or freeze a player? I just need them to not be able to move; the rest (shooting, nades, etc) isn't important.
__________________
#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 02-07-2008, 05:03 AM   #2
Ihmhi
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff
 
Ihmhi's Avatar
 
Join Date: Mar 2007
Location: Newark, NJ, United States
Class/Position: A little bit o' everythin'
Gametype: Also a little bit o' everythin'
Affiliations: [AE] Asseater, *SJB Straight Jacket Brigade
Posts Rated Helpful 3 Times
Send a message via AIM to Ihmhi Send a message via MSN to Ihmhi Send a message via Yahoo to Ihmhi
Well I know the TFC server had "pause" built into it, haha...

ADMIN: -pauses the game-
"Are you guys gonna play nice?"

Everyone was crying moar that day, so he basically just froze the game haha...
__________________
Support FF:
Anime: The Thread: Reloaded
The one and only anime thread on these here forums.

Select the pistol, and then, select your horse.
Ihmhi is offline   Reply With Quote


Old 02-07-2008, 06:57 AM   #3
Jiggles
Retired FF Staff
 
Jiggles's Avatar
 
Join Date: Jan 2005
Location: CowTown
Posts Rated Helpful 0 Times
Yeah, there's a FROZEN flag you can set on players, and I imagine Lua can do it...but Mulch or Jon are probably the ones to ask in that regard. I still think Lua's the devil

Or maybe setting a 0% speed effect? Dunno...
Jiggles is offline   Reply With Quote


Old 02-07-2008, 09:17 PM   #4
DrEvil
Fortress Forever Staff
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts Rated Helpful 3 Times
we used the freeze flag in some of our previous bot training to freeze the player while the bot explained shit
DrEvil is offline   Reply With Quote


Old 02-07-2008, 09:28 PM   #5
Tsukasa
 
Join Date: Sep 2007
Class/Position: O
Gametype: CTF
Affiliations: mimic-
Posts Rated Helpful 0 Times
Quote:
Originally Posted by DrEvil
we used the freeze flag in some of our previous bot training to freeze the player while the bot explained shit
I AM ROBOT. MY EYES HAVE FREEZE RAY.
Tsukasa is offline   Reply With Quote


Old 02-08-2008, 12:22 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 DrEvil
we used the freeze flag in some of our previous bot training to freeze the player while the bot explained shit
And how do you use the freeze flag? I don't see it in the big lua list of commands.
__________________
#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 02-08-2008, 01:28 AM   #7
-=Roland=-
 
-=Roland=-'s Avatar
 
Join Date: Apr 2007
Location: Hiram, GA
Posts Rated Helpful 0 Times
Semi related. I need to see if there is a way to prevent a player from shooting or throwing nades in an area but still move.
-=Roland=- is offline   Reply With Quote


Old 02-08-2008, 01:52 AM   #8
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 -=Roland=-
Semi related. I need to see if there is a way to prevent a player from shooting or throwing nades in an area but still move.
Nade explosions can be removed with a noannoyances trigger_ff_script if I'm not mistaken. Look in one of the includes (under the noannoyances definitions) for the code that removes grenade explosions.

Player shooting I'm not sure about (I think you can block/remove projectiles but I'm not sure how), but you can strip all weapons or all ammo using:
Code:
player:RemoveAllAmmo(true)
and/or
player:RemoveAllWeapons()
__________________
#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 02-08-2008, 04:23 AM   #9
-=Roland=-
 
-=Roland=-'s Avatar
 
Join Date: Apr 2007
Location: Hiram, GA
Posts Rated Helpful 0 Times
Thanks I'll give those a try.
-=Roland=- is offline   Reply With Quote


Old 02-08-2008, 07:09 PM   #10
DrEvil
Fortress Forever Staff
 
Join Date: Feb 2005
Location: Los Angeles, CA
Posts Rated Helpful 3 Times
I exposed the functionality to the bot scripting. I don't think its currently available to the FF scripting. It's easy to add though if its not already.
DrEvil is offline   Reply With Quote


Old 02-08-2008, 08:03 PM   #11
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 DrEvil
I exposed the functionality to the bot scripting. I don't think its currently available to the FF scripting. It's easy to add though if its not already.
Alright, hope to see it get added soon.
__________________
#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


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:49 AM.


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