AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   CS Battle Royale (PUBG) v2.6 [UPDATED 10/01/18] [ALL MAPS SUPPORTED] (https://forums.alliedmods.net/showthread.php?t=309613)

edon1337 08-01-2018 11:06

CS Battle Royale (PUBG) v2.6 [UPDATED 10/01/18] [ALL MAPS SUPPORTED]
 
5 Attachment(s)
by DoNii

Version: 2.6

Video Preview (Old Version)

Description:
- You must have already heard of the Battle Royale games which are taking over the planet, yes, I'm talking about PUBG and Fortnite.
This mod revamps the default game play into a new survival game play, where you have to kill everyone to survive.


Information regarding the mod
- The mod now supports any map, you only have to create spawn points/origins for the Airplane, Zone and Weapons/Healings, for which you will have a tutorial in the next post.

Requirements:

• Official HLDS, you can't use this mod if you're using ReGameDLL.
Orpheu (I've tested using latest version).
Random Origin Generator by HamletEagle. (if using automatic spawn points)

Features
  • Battle Royale (Team up with your friends or go alone in the battlefield)
  • Air Plane dropping (All players spawn into an airplane from where they can jump)
  • Random dropped weapons and healings
  • Fake teams (You're able to create up to 32 teams)
  • Customizable API (Almost everything is changeable through .ini files)
  • Round Manager (Will take care of the game play, no admins needed in the server)
  • Red Zone (Seen in Fortnite [storm], players outside of the zone will take damage)
  • A lot more, find out for yourself.

Configuration Files:
Spoiler


Commands
Spoiler


API:
Spoiler


WHATS NEW? (Changelogs) *CHECK
Code:

* v1.0
        • Initial Release

* v1.1
        • Some fixes

* v1.2
        • Deleted remove_entity_name("armoury_entity") from NewRound, should be in plugin_init

* v2.0 - Closed BETA:
        • Instead of removing armoury_entity every round, moved to plugin_init()
        • Fixed weapons not being spawned
        • Completely re-wrote Round Manager, last version was glitchy.
        • Starting from v2.0, you don't need CVAR Util, Infinite Round and No Objectives by VEN anymore. I implemented them in the mod
        • Fixed fake teams, they would put in your team people who weren't even alive
        • Added new method of fake teams, now instead of directly blocking spawn for player if he doesn't have a team, it checks if there's an available team for him.
        • Added a bunch of new forwards
        • Optimization
        • Added new sound when taking zone damage
        • Added new sound for airplane
        • Added auto team join on connect
        • I got tired of counting.

* v2.1
        • Fixed the problem that was causing round to end because of the timer
        • Fixed some parts that could bug
        • Fixed bug that was colliding players when jumping
        • Fixed bug that made players invisible
        • Fixed bug that made player invicible
        • Added a task to check if current alive players count is less than minimum, client_disconnect wasn't working properly
        • Fixed bug that caused player who won the game to not re-spawn
        • Fixed win manager, it was bugged before
        • Fixed MOTD not appearing on people who die
        • Added a code that blocks connect MOTD

* v2.2
        • Fixed fake teams when doing duos/squads
        • Removed the task I added in 2.1, added client_disconnect again but with a different method.
        • Hopefully fixed the bug that made some players sometimes invisible and invicible. Will try to fix it if it occurs again.

* v2.3
        • Added a code that might prevent players from remaining SOLID_NOT
        • Added more commands for backpack
        • Fixed damage stats

* v2.4
        • Added new method of checking disconnect, now it works.
        • Added new native SetPlayersInTeam (don't use it if you don't know what you're doing)
        • Fixed ReLocatePlayer (was int should be float)

* v2.5
        • The mod now supports every map! You only have to add spawnpoints/origins yourself.
        • Made the mod 200% times more configurable, added a bunch of new .ini and .cfg files for easy access to the user.
        • Added method to save player wins in Vault file.
        • Removed money HUD
        • Added option to choose whether to use automatic or custom spawn points
        • Fixed some possible future bugs
        • Optimized the code as always
        • Fixed parachute velocity appearing if admin slayed player
        • Fixed bug that was giving Victory Royale when players was killed by the zone

* v2.6
        • AirDrop now creates weapons on the ground instead of giving them to the player, StripWeapons .inc isn't needed anymore.
        • Added automatic way to create missing directory and files when playing on an unregistered map
        • Constant Update of Friend HUD, now it will show the status of the teammates, Dead/Alive.
        • VoiceChat limited to teammates - not tested
        • Added DHUD showing newbies how to jump from the plane
        • Added new camera angle, now it is similar to PUBG/Fortnite.

Downloads
V2.4 - (324)
V2.5 - (129)

Credits
• HamletEagle - If it wasn't for him, this mod wouldn't have been completed. Huge props.
• EFFx - Airplane code.
• Ghosted - Player->Zone 2D calculation and a lot of other help.
• Natsheh - For his circle creation stock which I used for the red zone.
• KliPPy - Backpack code, I was lost in my old code.
• Arkshine - fix for WeaponList.

edon1337 08-01-2018 11:07

Re: CS Battle Royale [BETA]
 
2 Attachment(s)
Adding Support for new maps

Tutorial
Adding Custom Spawn Points for your weapons and healings:
Spoiler


Adding Zone Starting Origins:
Spoiler


Adding Plane Directions:
Spoiler


Add-Ons

CsBattleRoyaleEntTracker.sma
- Keep track of your spawned entities, it will show the count of spawned weaponboxes and healing items. Say /track.

CsBattleRoyaleWeaponModelsReplacer.sma
- In case you want to replace any weapon's model, then this add-on can do it for you.

Download them below.

iceeedr 08-01-2018 11:36

Re: CS Battle Royale [BETA]
 
PHP Code:

[bp]
EMERGENCY_DROP Drop de emergencia!
AIRDROP_ARRIVED O airdrop aterrissouva pegar!
TAKE_ITEM_MEDKIT Voce recebeu %d de HP usando o kit Medico.
TAKE_ITEM_DRINK Voce recebeu +%d de HP bebendo o Drink.
ADDED_ITEM_BACKPACK = %s foi adicionado a sua mochila.
CANT_TAKE_MEDKIT Voce nao pode usar o kit medico quando sua HP e maior ou igual a %d.
CANT_TAKE_DRINK Voce nao pode usar o Drink quando sua HP e maior ou igual a %d.
ROUND_WINNER = ~ Ganhador do RoundTime %~
YOUR_TEAM_PLACED = ~ Colocacao do seu time#%d ~
ROUND_STARTS_IN AtencaoO round comeca em %d segundo%s
ZONE_APPEARS 
A zona vai aparecer em %d segundos.
ZONE_TIGHTEN A zona comecou a fechar.

HUD_YOUR_TEAM Seu time:
HUD_INFO = | ** Seu time: %** |^n| ** Times Restantes: %** |^n| ** Players vivos: %** |^n| ** Seus kills: %** | 


HamletEagle 08-01-2018 11:45

Re: CS Battle Royale [BETA]
 
I see you have remove_entity_name on weaponbox. This calls remove_entity, and creates a leak. It will destroy the box, without the weapons from the box, as I explained before.
call_think is the proper way.

Also please avoid declaring variables in a loop.

edon1337 08-01-2018 11:58

Re: CS Battle Royale [BETA]
 
Quote:

Originally Posted by iceeedr (Post 2607483)
PHP Code:

[bp]
EMERGENCY_DROP Drop de emergencia!
AIRDROP_ARRIVED O airdrop aterrissouva pegar!
TAKE_ITEM_MEDKIT Voce recebeu %d de HP usando o kit Medico.
TAKE_ITEM_DRINK Voce recebeu +%d de HP bebendo o Drink.
ADDED_ITEM_BACKPACK = %s foi adicionado a sua mochila.
CANT_TAKE_MEDKIT Voce nao pode usar o kit medico quando sua HP e maior ou igual a %d.
CANT_TAKE_DRINK Voce nao pode usar o Drink quando sua HP e maior ou igual a %d.
ROUND_WINNER = ~ Ganhador do RoundTime %~
YOUR_TEAM_PLACED = ~ Colocacao do seu time#%d ~
ROUND_STARTS_IN AtencaoO round comeca em %d segundo%s
ZONE_APPEARS 
A zona vai aparecer em %d segundos.
ZONE_TIGHTEN A zona comecou a fechar.

HUD_YOUR_TEAM Seu time:
HUD_INFO = | ** Seu time: %** |^n| ** Times Restantes: %** |^n| ** Players vivos: %** |^n| ** Seus kills: %** | 


Thanks!

Quote:

Originally Posted by HamletEagle (Post 2607485)
I see you have remove_entity_name on weaponbox. This calls remove_entity, and creates a leak. It will destroy the box, without the weapons from the box, as I explained before.
call_think is the proper way.

Also please avoid declaring variables in a loop.

Done.

I should also delete remove_entity_name("armoury_entity") from NewRound/RoundEnd and put it in plugin_init, right?

HamletEagle 08-01-2018 12:37

Re: CS Battle Royale [BETA]
 
Yes, if armoury_entity is removed once it won't be respawned.

edon1337 08-01-2018 12:44

Re: CS Battle Royale [BETA]
 
Quote:

Originally Posted by HamletEagle (Post 2607497)
Yes, if armoury_entity is removed once it won't be respawned.

Done. Does Arkshine's Infinite Round block even sv_restartround? Because that's what I'm using to end the current round and start a new one.

If someone could test the mod in a live server with some friends, and leave a feedback of their experience, it would help me a lot.

RaZ_HU 08-01-2018 14:30

Re: CS Battle Royale [BETA]
 
Quote:

[hu]
EMERGENCY_DROP = Elsősegély Csomag!
AIRDROP_ARRIVED = A Csomag megérkezett, menj és szerezd meg!
TAKE_ITEM_MEDKIT = %d HP-d van a MedKit használata után.
TAKE_ITEM_DRINK = Kaptál +%d HP-t az Italtól.
ADDED_ITEM_BACKPACK = %s belekerült a táskádba.
CANT_TAKE_MEDKIT = Nem használhatsz Medkitet ha több vagy egyenlő a HP-d mint %d.
CANT_TAKE_DRINK = Nem használhatsz Italt ha több vagy egyenlő a HP-d mint %d.
ROUND_WINNER = ~ A kör nyertese a %d csapat ~
YOUR_TEAM_PLACED = ~ A csapatod helyezése: #%d ~
ROUND_STARTS_IN = Figyelem: A kör kezdetét veszi %d másodpercen belül.
ZONE_APPEARS = A Zóna megjelenik %d másodpercen belül.
ZONE_TIGHTEN = A Zóna elkezdett szűkölni.

HUD_YOUR_TEAM = A Csapatod:
HUD_INFO = | ** A Csapatod: %d ** |^n| ** Hátralévő Csapatok: %d ** |^n| ** Élő Játékosok: %d ** |^n| ** Öléseid: %d ** |
Sounds cool, too bad I can't test it :D
(Orpheu is unreliable on ReHLDS/ReGameDLL - even if it works for some plugins I have tried.)

HamletEagle 08-01-2018 14:35

Re: CS Battle Royale [BETA]
 
Quote:

Originally Posted by RaZ_HU (Post 2607517)
Sounds cool, too bad I can't test it :D
(Orpheu is unreliable on ReHLDS/ReGameDLL - even if it works for some plugins I have tried.)

Quote:

Requirements:

• Official HLDS, ReHLDS won't be supported due to Orpheu being used.

edon1337 08-01-2018 14:40

Re: CS Battle Royale [BETA]
 
Quote:

Originally Posted by RaZ_HU (Post 2607517)
Sounds cool, too bad I can't test it :D
(Orpheu is unreliable on ReHLDS/ReGameDLL - even if it works for some plugins I have tried.)

Your translation has Unicode characters.
I was hoping not to use Orpheu and make it compatible for ReHLDS too but it was too much work, also I don't know how to use ReAPI functions.

* Video preview added


All times are GMT -4. The time now is 22:47.

Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.