Garry's Mod

Garry's Mod

Freddy Fazbear's Pizzeria 2 [NO EVENTS]
Jai "Choccy" Fox 2014 年 11 月 17 日 上午 11:26
Attempt to making my own FNAF gamemode, atleast..
It seems when I get bored, I do things like this(sometimes). I've been using the HL2C(Half-Life 2 Campaign) GM Base to make a small Five Nights at Freddy's gamemode.

Since it runs from another gamemode code, I was easily able to get it working like I wanted it to be. It also made it easier to put in small hooks on a certain map so it can give weapons to a player when they spawn or do simple function calls.

I've got this short list of things that the gamemode does(as of now):
  • Your friendly trustable HL2 flashlight which you have no matter what has been changed so it doesn't stay on forever. Its energy depletes over time when it's on, once it has been fully depleted, it will turn off and slowly recharge back(might change later with pick-upable batteries). Also, it doesn't recharge until fully depleted and the flashlight won't be useable while it's recharging.
  • You'll spawn with the right weapons in the right maps. You'll have the Security Tablet in both, but you will only have the freddy mask in the FNAF2 map.
  • Player Collisions are disabled. Player Collisions have been a nightmare in Sandbox.
  • Physic Guns are for admins only. This stops mingebags from ruining all your fun, but admins should also be aware that the physgun will only be given to them if a convar is set to 1.
  • PVP is disabled no matter what. This is because of the gamemode code used.

If you want more information:

This gamemode isn't a copy and pasted "Base" gamemode.

The flashlight has an energy bar on top of your Health so you know how much has been depleted. It's very easy to notice.

http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=343232606

When I said you can give certain weapons, it's a thing. Since the gamemode includes a lua file which is currentmap.lua, it's easy to hook things only for that map.

http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=343240218


Well, a pretty simple gamemode, isn't it? There is nothing else much to do other than adding in "extra" stuff. I may get to releasing this gamemode to the workshop sometime, if the upload speed is happy with it. :box:

Also, here is another thing I should say. I'm not a good LUA coder at all. I can do things, but I'm very limited to what I can do.
最后由 Jai "Choccy" Fox 编辑于; 2014 年 11 月 17 日 下午 11:20
< >
正在显示第 1 - 7 条,共 7 条留言
AlfieChelseaUK 2014 年 11 月 17 日 上午 11:43 
SOUNDS GREAT! :3
aaron5015 2014 年 11 月 17 日 下午 10:09 
oh hi.
Jai "Choccy" Fox 2014 年 11 月 18 日 上午 1:38 
Small update post:

The gamemode has done the flashlight up abit. Instead of the flashlight recharging all the way to the top when it's fully depleted, it will only recharge a small tiny bit.

EDIT: Also added in a text message that only appears if cstrike is not mounted.

Also, batteries were added! :D
These batteries look like the HL2 suit batteries as of now because I've got no other model at the moment. They also rely on another entity which spawns them and respawns them. The respawn time is 1 minute.

The gamemode only allows 2 batteries max to be carried around by a player. If you've got a battery and running low on flashlight energy, press F2.

http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=343499716


Meanwhile...
引用自 GbrosMC
i would love to see this, friend me if you need any help

I'll have to see. It depends if I get stuck.

引用自 Old Foxy The Pirate
SOUNDS GREAT! :3

Hopefully, I can make it greater than the previous gamemode that was deleted from the workshop.

引用自 LODDHunter
oh hi.

Hi there..
最后由 Jai "Choccy" Fox 编辑于; 2014 年 11 月 18 日 上午 2:33
Jai "Choccy" Fox 2014 年 11 月 19 日 上午 3:01 
Small update post(AGAIN), also sorry for double posting.. not much people comment here :P

I've had a small game mechanic added in. It's a basic "Sanity" level. In certain areas, I make the gamemode spawn in a trigger_insanityarea which will decrease your Sanity. It goes down fast if your flashlight isn't on, so it's a good idea to keep your flashlight on if you do notice a Sanity drop.

"What happens if you go fully insane??//?/".. Once your sanity reaches 0, you'll just die. You'll know when you're on low sanity because it will show on the Sanity meter. It also has a few "visual" things happening when your sanity is < 25 like Sobal and Motion blur. These get worse when < 7. If you're < 7, your screen will go abit black and the motion blur effect add in a few visuals to make it more interesting. Once reaching Sanity to 1, your entire screen goes black and the Sanity meter will just display "IT'S ME" instead.. You however still have a chance to stop yourself from dying after this stage.
joysigil 2014 年 11 月 19 日 上午 4:28 
Ok, so while you're in the Office, the sanity meter doesn't move?
Jai "Choccy" Fox 2014 年 11 月 19 日 上午 4:43 
Pretty much. It only goes down in some places that are outside the office.
joysigil 2014 年 11 月 20 日 下午 12:35 
Awesome. How do you save yourself? Are you gonna make it so getting close to animatronics will make the sanity bar go down super fast?
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50