Skip to content

artvin01/TF2-Zombie-Riot

Repository files navigation

If you wish to donate to support this project then concider subscribing to the patron, cus i like money.

Patreon

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.

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!!! I overall try to keep a standart across them all without bothering them too much.

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.

if you for some ungodly reason need 100 player zr, grab the 100 player version, otherwise use the other version for more performance and less ram usage.

Use THIS compiler version if you dont want any wierd issues when coding yourself: 1.12.0.7163

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 Servers: (American)

74.91.119.154:27017 ( steam://connect/74.91.119.154:27017 )

74.91.113.50:27016 ( steam://connect/74.91.113.50:27016 )

(European)

145.239.70.42:27015 ( steam://connect/145.239.70.42:27015 )

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_maxbotsforkillfeed" = "6" ( def. "6" )

  • The maximum amount of blue bots allowed for the killfeed

"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

"zr_raidmultihp" = "1.0" (def. "1.0) -Multiplies raid scaling type of HP (good for big maps.)

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:

If you want to compile, this include is needed!

Optional plugins

  • Max speed unlocker (Used for zealot, although you dont need it, but i recommend it.) Set this to 720.0

Credits

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

  • Artvin (main dev, me)
  • Batfoxkid (co dev)
  • JDeivid (Co Dev)
  • Mikusch (Gamedata assistance and more, a savior.)
  • Kenzzer (Got gamedata and make an extention edit for us, plus CBaseNpc!)
  • Spookmaster (general assitance and debugging too)
  • Mentrillum (Assitance in converting from Pathfollower to CBaseNpc!)
  • Suza(gamedata stuffs)
  • Alex(Weapons overall assistance)
  • 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.)

Some Code is borrowed/just takes from other plugins i or friends made, often with permission, rarely without because i couldnt contact the person or it was just open sourcecode, credited anyways when i did that inside the code. All was under the GLP3.0 lisence.

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

About

An original PVE Game modded into another game.

Resources

License

Stars

Watchers

Forks