Giter VIP home page Giter VIP logo

corruptsnail-gamemode's Introduction

CorruptSnail

GitHub release GitHub license Discord Status
A zombie gamemode for FiveM with a big focus on letting the player adventure the map to find random scenarios involving AI survivors and zombies.

This mod is still in an early WIP phase.

Installation

  • Download the resource.
  • Extract the zipfile and copy all files to resources/corruptsnail.
  • Open server.cfg and add ensure corruptsnail.

TODO

  • Add safezones where players can meet each other, restock on ammo, get random items or accept random missions
  • Have heavily armed AI guarding the safezones
  • Make it possible for players to collect a phone and map for free in every safezone to gain access to all-map communication, make all players who also have a phone visible on the map and make all hidden blips visible
  • Dynamic spawning system (there should be way more zombies spawning in Los Santos than in the desert in the middle of nowhere)
  • Random AI survivor scenarios (i.e. rebel groups or military helis flying by like in the old version of CorruptSnail, can either be friendly or hostile)

corruptsnail-gamemode's People

Contributors

ghermans avatar pongo1231 avatar racpy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

corruptsnail-gamemode's Issues

Script Error: invalid key to 'next'

Script Error: invalid key to 'next'

HandleExistingZombies (@corruptsnail/spawning/cl_zombies.lua: 74)
func (@corruptsnail/spawning/cl_zombies:158)
fn (@corruptsnail/cl_utils: 131)

It's so random, The scripts works btw .

Zombies not Spawning when another players connect

When another player connects zombie/guards won't spawn anymore unless other player(s) leaves and resource is restarted

ERROR: cl_player.lua:10: attempt to index a nil value (global 'Util')

func (@CorruptSnail-Gamemode/spawning/cl_savezones.lua:68)
fn (@CorruptSnail-Gamemode/cl_utils.lua:130)

ERROR: cl_player.lua:10: attempt to index a nil value (global 'Util')

func (@CorruptSnail-Gamemode/spawning/cl_zombies.lua:253)
fn (@CorruptSnail-Gamemode/cl_utils.lua:130)

Damage

All my players got a one hit kill from the zombie peds. Is there a way to make a line in the config to edit their melee damage?

Add safezones

Add safezones where players can

  • meet each other
  • restock on ammo
  • get random items or accept random missions

List of models for the zombies

I tried this:

    ZOMBIE_MODEL =  {
		"u_m_y_zombie_01",
		"a_f_m_bevhills_01",
		"a_f_m_downtown_01",
		"a_f_m_ktown_01",
		"a_f_m_skidrow_01",
		"a_f_m_trampbeac_01",
		"a_f_y_hiker_01",
		"a_f_y_rurmeth_01",
		"a_m_m_afriamer_01",
		"a_m_m_bevhills_01",
		"a_m_m_eastsa_01",
		"a_m_m_farmer_01",
		"a_m_m_hasjew_01",
		"a_m_m_hillbilly_01",
		"a_m_m_mexcntry_01",
		"a_m_m_rurmeth_01",
		"a_m_m_tramp_01",
		"a_m_m_trampbeac_01",
		"a_m_o_acult_02",
		"a_m_o_salton_01",
		"a_m_y_methhead_01",
		"g_m_m_chemwork_01",
		"g_m_y_salvagoon_01",
		"s_f_y_cop_01",
		"s_m_y_cop_01",
		"u_m_o_filmnoir",
		"u_m_y_corpse_01",
		"u_f_m_corpse_01",
		"u_f_y_corpse_01",
		"u_f_y_corpse_02"
	}

And

--local ZOMBIE_MODEL = GetHashKey(Config.Spawning.Zombies.ZOMBIE_MODEL)
local ZOMBIE_MODEL = Config.Spawning.Zombies.ZOMBIE_MODEL
--        local zombie = Utils.CreatePed(ZOMBIE_MODEL, 25, vector3(spawnPos.x, spawnPos.y, newZ), 0.0)
		local zombieN = math.random(#ZOMBIE_MODEL)
		local zombieH = GetHashKey(ZOMBIE_MODEL[zombieN])
        local zombie = Utils.CreatePed(zombieH, 25, vector3(spawnPos.x, spawnPos.y, newZ), 0.0)
        ZombifyPed(zombie)

Looks ok?

Cheers!

Player saves

How do you save player stats after done playing. How do you connect it to a database

Guards spawn with every player.

A guard spawns for every player. For example if a player is on the server, there will be one guard on every coords set. If 2 or more players are on the server there will be 2 or more guards on every coords.

Collect a phone and map for free in every safezone

Make it possible for players to collect a phone and map for free in every safezone to gain access to all-map communication, make all players who also have a phone visible on the map and make all hidden blips visible

Spawn system

Spawn the player in a random location on death / first join with just a pistol and only make safezone blips visible for them

Leveling system

XP could probably be gained by killing zombies or completing random missions

Script for zombies

Hi guys can somebody tell me how to diseable zombies spawning arond and in safezones ? and also how to add differents skins for zombies .

Zombies will not spawn if > 1 player together

When more than one person is near each other, say driving around, no zombies will spawn. When solo or away from other players it works fine. Any ideas?

Great job btw.

I'm using the lua version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.