View Single Post
Author Message
Thod_
Junior Member
Join Date: Jun 2017
Location: Ohio, Ohio, Ohio
Old 06-04-2020 , 19:36   [TF2] TFRP Mod (Update v1.3.0 7/1/2020)
Reply With Quote #1

This is my first post on here, please tell me if I did something wrong!
What is TFRP?

Team Fortress Roleplay (TFRP) is a modifcation for TF2 that aims to create an experience similar to HL2 Deathmatch's RP mod.
TFRP is inspired by HL2 : DM RP and a bit from DarkRP on Garry's Mod
I do understand how insane this sounds.

Changelog
v1.0 - Initial Release

v1.1
  • Changed messages for Sandvich making
  • Changed messages for Australium mining
  • All ents are stored in one array for owners
  • New array for ent's item type
  • Fixed bug related to using items
  • Shortened and improved lots of code related to money making systems

v1.2.0
  • Fully integrated SQL Support (Credits to The Illusion Squid)
  • Small overhaul to inventory (Also credited to The Illusion Squid)
  • Added /rotate - Horizontally rotate entities you own
  • Cleaned up Australium Mining
  • Cleaned up Sandvich Making
  • Added more weapons to shop
  • Added furniture

I took a 2 day break from the mod to work on other projects but I'm back

v1.2.1
  • Fixed new players not recieving start money
  • Fixed weapons having the wrong category
  • Fixed Australium Packages reaching max after being picked up
  • Fixed error related to doors owned by disconnected players
  • Revokekeys is now accessible
  • Messages now appear on givekeys errors
  • Message now appears when a government door is added

v1.2.2
All changes by The Illusion Squid
  • All (or at least most) config variables have been moved to cvars stored it enum.
  • Plugin now creates and executes /cfg/sourcemod/tfrp.cfg
  • The plugin now also loads players that are in the server upon SQL connected. (Meaning you can now actually reload the plugin without it being a huge problem if there's people on.(Still rather you'd restart the full server though.))

v1.3.0
  • *Added Bonk Mixer (Job)
  • *Added Bonk Mixer (Ent)
  • *Added Bonk Canner
  • *Added Bonk! Buyer
  • *Fixed weapons not getting removed from inventory after use
  • *Sell price of Australium Packs increased
  • *Price of Rocket Launcher and Flamethrower increased
  • *Functional radio
  • *Fixed multiple Mayors glitch
  • *Added help menu
  • *Moved welcome message to chat instead of HUD
  • *Clients connecting auto download TFRP models & materials
  • *Fixed bank robberies not stopping after robber dies
  • *Added time between bank robberies
  • *Fixed bank HUD
  • *Players' jobs can be seen when looking at them
  • *Players can now see enemies' healths and names (RED players can see BLU player's health and vise versa)
  • *All entities have a max now, determined in the shop cfg
  • *Officers are rewarded with cash for arresting a player that has a warrant
  • *Fixed setting warrants on arrested players
  • *Moved Warrant HUD to chat
Ingredients for Bonk! Atomic Punch:
Water, Sugar, Caesium

The models are my first modeling job so go easy, but I'll improve them in the future as I get better at Blender

v1.4.0
All changes by The Illusion Squid
  • SQL fixed to have no Duplicate rows inside the inventory table.
  • Inventory fixed for the new SQL system and made so it stays open if you have more of the item.
  • Shop fixed for the new SQL system and also made easier to buy/sell multiple of 1 item.
  • Wearable weapons like backpacks, boots, shields, etc. are now also removed on spawn.
  • The targeting for admin commands is now working the same as any other sourcemod command.

Commands

General Commands:
  • sm_jobs Opens Jobs menu
  • sm_shop Opens Shop
  • sm_items Opens inventory
  • sm_givemoney Give money to the player you're looking at
  • sm_pickup Picks up dropped/deployed entity you're looking at
  • sm_rotate Horizontally rotate entities you own

Door Commands:
  • sm_rphelp Help menu
  • sm_buydoor Buys the door you're looking at
  • sm_lock Locks the door you're looking at
  • sm_selldoor Sells the door you're looking at
  • sm_givekeys Opens player list to select who to give keys to the door you're looking at
  • sm_radiochannel Changes channel of radio you're looking at

Police Commands:
  • sm_pradio Sends message to all police
  • sm_arrest Arrest player you're looking at

Bank Robbing Commands:
  • sm_robbank Initiates bank robbery (must be looking at bank)

Hitman Commands:
  • sm_placehit Opens player list to select who you want to set a hit on (Must be looking at a Hitman)

Lottery Commands:
  • sm_setlottery Initiates a lottery
  • sm_joinlottery Join current lottery

Law Commands:
  • sm_addlaw Adds a law
  • sm_deletelaw Deletes a law
  • sm_laws Displays all laws

Warrant Commands
  • sm_setwarrant Opens menu to set who to put a warrant on
  • sm_ram Unlocks door you're looking at (Owner must have a warrant)

General Admin Commands:
  • sm_setcash Sets cash of specified player
  • sm_reloadconfig Reloads tfrp_config

Admin Teleport Commands:
  • sm_bring Teleports specified player to you
  • sm_goto Teleports you to specified player
Admin Door Commands:
  • sm_deletebuyabledoor Disables the buying of the door you're looking at
  • sm_addbuyabledoor Restores buying of door you're looking at
Admin Police Commands:
  • sm_setjail Sets jail at your location
  • sm_createbankvault Creates a bank vault your location
  • sm_addgovdoor Only allows government officals to use the door you're looking at
  • sm_deletegovdoor Allow anyone to buy and use the door you're looking at (Reverts changes of addgovdoor)

Want to modify TFRP? Take a look at tfrp.inc
You can make your own addons using the functions in there.

Installation

Prerequisites:
Before installing TFRP, you will need the following plugins:


Installation and configuration of TFRP can be found in the readme.txt

Maps
Link to the map shown in screenshots: https://www.dropbox.com/s/vwnn7u99gc...1_fix.bsp?dl=1
*I updated the map a little bit, I just fixed an areaportal and some displacements

If you want to make your own map for the mod, make sure all doors have "Touch Opens" flagged and are func_door_rotating , as these work the best with TF2

Images




Want to view/edit/make fun of the source code? Check out the
Github Repository
Attached Files
File Type: zip tfrp_1.4.0.zip (139.9 KB, 124 views)
__________________
what
Discord: Thod#7661
Steam: https://steamcommunity.com/id/thodrchexs/

Last edited by Thod_; 08-19-2020 at 15:15.
Thod_ is offline