Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a rewritten ZombieReborn to CS2Fixes #154

Merged
merged 50 commits into from
Jan 12, 2024
Merged

Add a rewritten ZombieReborn to CS2Fixes #154

merged 50 commits into from
Jan 12, 2024

Conversation

Vauff
Copy link
Contributor

@Vauff Vauff commented Jan 2, 2024

Reimplements all of the Lua ZombieReborn script within a C++ Metamod plugin (CS2Fixes).

This PR was a collaborative work by @EasterLee @Vauff @Faramour @xen-000

To do:

  • Add mother zombie immunity
  • Add check for map item dropping before weapon stripping here

@Vauff Vauff marked this pull request as draft January 2, 2024 03:41
@Vauff Vauff marked this pull request as ready for review January 6, 2024 06:14
Faramour and others added 27 commits January 12, 2024 23:15
* Add files

* Push changes to remote branch
* basic knockback

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* move detour

* add infection

* pawn+controller respawn gamedata

* add resolve_sig

* fix address
* basic knockback

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* move detour

* add infection

* pawn+controller respawn gamedata

* add resolve_sig

* fix address

* add zspawn command

* mother zombie infection

* setmodel + win condition

* bug fix
Makesig script did not correctly wildcard certain bytes, this fixes that

As a result this now matches two identical functions, which should not matter since behaviours will match
* basic knockback

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* move detour

* add infection

* pawn+controller respawn gamedata

* add resolve_sig

* fix address

* add zspawn command

* mother zombie infection

* setmodel + win condition

* bug fix

* script weapon on infect

* 1

* prevent team hopping, zm can only pick up knife, team score

* combine WeaponServices_CanUse detour if statement

* ZR_StripAndGiveKnife null check
- Update !ztele to use Zombie:Reborn prefix
- Remove unneeded cvars, uncomment bot_quota_mode fill
- Moved force CT to ZR
* basic knockback

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* Update zombiereborn.cpp

* move detour

* add infection

* pawn+controller respawn gamedata

* add resolve_sig

* fix address

* add zspawn command

* mother zombie infection

* setmodel + win condition

* bug fix

* script weapon on infect

* 1

* prevent team hopping, zm can only pick up knife, team score

* combine WeaponServices_CanUse detour if statement

* ZR_StripAndGiveKnife null check

* manual respawn + misc changes

* add setpawn sig for linux

* add new cvars to cfg

* fix controller respawn offset

* remove second player_death

* save cteam handles

* revise

* fix logic & respawn late joiners

* move mz infection after teleport
Not using it in ZR anymore, so we should just pull that branch into main if still desired
The swapped overloads were fixed in the sdk
* add weapon config

* update example
* add delay to late joiner respawn

* make jointeam kills the player
* playerclass + regen timer

* Add base class, speed, and gravity attribute

* fix typo

* rename player class global variable

* add model precache

* add missing newline

* disable "enabled" for now

* edit timer
Vauff and others added 23 commits January 12, 2024 23:33
These changes bring us more in line with CS2 round behaviour, possibly fixing an issue where first player would join and never spawn
* initial tweak

* Update zombiereborn.cpp
* add mz immunity

* tab

* add immunity cvar

* break infinite loop and implement second fail safe

* check mother zombie ratio
Copying the service null checks from ZR weapon stripping, where a similar crash was previously observed during development
@xen-000 xen-000 merged commit af0e188 into main Jan 12, 2024
3 checks passed
@xen-000 xen-000 deleted the zombiereborn branch January 12, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants