Skip to content

Latest commit

 

History

History
164 lines (108 loc) · 6.28 KB

README.md

File metadata and controls

164 lines (108 loc) · 6.28 KB

WARNING! READ!

USE 32 BIT SERVER AS OF NOW! this gamemode is ready for 64bit, but it is not possible yet as dhooks and address saving doesnt work for 64bit yet. there are some things missing as its still a WIP fix:

-Killfeed bots

-MVM hud setting resetting

-Bob the second not listenign to commands

-EDAlloc remover, i.e. edicts being reserved.

some more...

TF2 Zombie Riot

You fight against AI enemies/Zombies with allies and try to win/suvive as long as possible, You buy weapons and or upgrade them from previous ones. Stay together and beat them Compile zombie_riot.sp for this.

Information

THIS CODE IS COMPRISED OF MULTIPLE CODERS JUST ADDING THEIR THINGS! SO HOW THIS CODE WORKS CAN HEAVILY VARY FROM FILE TO FILE!!!

YOU MUST USE SOURCEMOD 1.12 FOR THIS PLUGIN!!!!!!!!!!!!!!!

If you wish to use this plugin for your own server, please keep all the credits that are here or i WILL cry. Do not go above 14 players(you can have 32 slots, i recommend 16+) but dont allow more inside the plugin itself (Inside queue.sp), as the server doesnt support that interms of performance, the npc's are limited at 32 for a reason. The performance heavy things are Lagcompensation and pathfinder, but i tried to optimise those as much as i could. Most of the code is made towards client prediction to make the best experience.

Use THIS compiler version if you dont want any wierd issues: 1.12.0.7053

Also keep in mind that i (artvin) started coding here with only half a year of knowledege so you'll see a fuckton of shitcode.

Where can I see this gamemode in action?

IF you wish to see the plugin in action/or just are interrested in playing this gamemode rather then coding/messing with it, the main server for the plugin is this one hosted by disc.ff:

Main Server: (American) 74.91.119.154:27017 ( steam://connect/74.91.119.154:27017 )

cvar's

"zr_infinitecash" = "0" ( def. "0" )

  • Money is infinite and always set to 999999

"zr_noroundstart" = "0" ( def. "0" )

  • Makes it so waves refuse to start

"zr_nospecial" = "0" ( def. "0" )

  • No Panzer will spawn or anything alike, good incase you hate this stuff

"zr_privateplugins" = "0" ( def. "0" )

  • Enable private plugins, set this to zero.

"zr_maxbotsforkillfeed" = "6" ( def. "6" )

  • The maximum amount of blue bots allowed for the killfeed

"zr_viewshakeonlowhealth" = "1" ( def. "1" )

  • Should the view shake when low on health?

"sv_visiblemaxplayers" = "24" ( def. "24" )

  • This is a default cvar from tf2, but i recomend setting it to 24 on a 32 player server.
  • it sets the max slots to 24 so players wont join, but bots can for killfeed reasons.

"zr_maxplayersplaying" = "14" ( def. "14" ) -Max players allowed to play at once, it should be set lower on linux due to performance drops on it -You may set it to any value, but i recomment 14-20

Commands

"sm_give_cash" "PLAYER" "YOUR AMMOUNT"

  • Give money or remove money from said person or group

"zr_setwave"

  • Will set the wave to the number given +1

"sm_spawn_npc"

  • Any id will spawn the specific npc on where you look, check code to see which number equals which npc

Installation

Go to Database.cfg inside your configs folder, and add

"zr_local"
{
	"driver"			"sqlite"
	"database"			"zr_local_database"
}
"zr_global"
{
	"driver"			"sqlite"
	"database"			"zr_global_database"
}

global zr can be a shared database across multiple servers, local one should stay sqlite.

Dependencies

Sourcemod 1.12 Is a Must.

For both linux and Windows, not all linux gamedata might be here.

The SourceMod plugins / extensions listed below are required for TF2 Zombie Riot to run:

Credits

Current coders that in anyway actively helped, in order of how much:

  • Artvin (main dev, me)
  • Batfoxkid (co dev)
  • Mikusch (Gamedata assistance and more, a savior.)
  • Kenzzer (Got gamedata and make an extention edit for us, plus CBaseNpc!)
  • Mentrillum (Assitance in converting from Pathfollower to CBaseNpc!)
  • Suza(gamedata stuffs)
  • Alex(Weapons overall assistance)
  • Spookmaster (general assitance and debugging too)
  • Ficool2 (helped with the mvm hud logic and some workarounds)
  • Pelipoika (Npc base code that we heavily edited, thank you SO much for publishing it all.)
  • [backwards] (backwards#8236) on discord. (Helped with sdkcall lag compensation.)

Alot of code is borrowed/just takes from other plugins i or friends made, often with permission, rarely without cus i couldnt contact the person or it was just open sourcecode, credited anyways when i did that.

IF YOU HAVE ANY QUESTIONS, CONTACT ME. My things are in my Bio.

Note: Compile both listen.so and envnav.sp so you can edit the navmesh live on the server.

Credits go to - Arthurdead for the original plugin nav plugin I just got windows gamedata. To edit the nav live, do sm_nav_edit_mode

BEWARE, THIS SETS sv_cheats TO 1, Do it again to disable, you must also run sm_rcon for any nav command (Zr will hide that sv_cheats got set and other stuff, and will also hide it from players, i will in the future code an anti cheat in zr to prevent this) The server WILL crashwhen editing, beware, no idea how to fix it, too lazy.

Just dont announce that youll do it.

If you wish to donate to support this project then concider subscribing to the patron

Patreon