Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Counter-Strike » Plugins » Universal plugins » Game Mode - Pig War

Game Mode - Pig War

05.04.2020, 13:01adminViews: 1 708Comments: 1

About this content




Introducing! This is Pig War! You might remember the old game 'Hogs of War', where you had to fight as pigs when it first came out on the 'Sony PlayStation' console. This game mode has lots of interesting and useful features, for example: flexible configuration of all functionality, the ability to keep battle statistics, and award ranks (a rating for each grunt). An API is provided so that some functions can be used in other plugins for your own purposes. (See the 'installation and configuration' section for details.)

Preparing for battle: It all begins when the battle preparation menu is opened using a command (for example, by an admin). In this menu, you can choose various upgrades for the battle itself for different player categories. For example, if a player is VIP, you can choose only rendering or a double jump for all VIPs. For the Admin category, you can choose a VIP model upgrade for all admins, while the Creator (the head admin) can get a large amount of health and increased damage (speed, gravity).

Gameplay:
After configuring everything in the preparation menu, the battle begins. All players are teleported into the prepared enclosure (fence), everyone's model is changed to a pig (if using categories, each category gets a different model, depending on the flags), and a countdown to the battle begins. Once the countdown ends, the battle starts. Every time a pig dies, there will be a squealing sound, adding some fun to the gameplay. After a death, data is saved to the SQL database about the attacker and the victim. If it comes down to a pig-versus-pig showdown, the winner is recorded in a separate stat (survivor), and the statistics can then be viewed in an MOTD window using a command.


Requirements
Your own website for hosting the CSS file (preferable, but you can ask a friend).
A connection to an SQL database (with no query limits, since there will be many of them).

Commands
say /pw-menu - open the menu for creating (editing) enclosures and spawn points
say /pw - open the preparation menu before the battle, start.
say /pigwar - open the preparation menu before the battle, start.
say /pw-top - view battle statistics [формат: команда любая цифра (/pw-top10, /pw-top20)]

Installation
    1. Compile each plugin
    2. Copy the files '.inc' to the directory: amxmodx/scripting/include/
    3. Copy the compiled files '.amxx' to the directory: amxmodx/plugins/
    4. Copy the file 'plugins-pigwar.ini' to the directory: amxmodx/configs/
    5. Copy the data and settings storage folder 'pigwar' to the directory: amxmodx/configs/
    6. Copy the plugin dictionary .txt to the directory amxmodx/data/lang/
    7. Copy the entity model files .mdl to the directory models/pigwar/
    8. Copy the folders containing player model files .mdl to the directory models/player/
    9. Copy the files .wav to the directory sound/pigwar/
    10. Copy the style settings file for displaying the MOTD window ' .css' to the root of your website.
    11. The archive contains an SQL dump file for the tables, ' .sql'; import it into the prepared database.
    12. Configure all plugin cvars and defines (database connection, etc.).
    13. Change the map or restart the server.
game-mode-pig-war-modular.zip422.53 Kb · Downloads: 93

Comments (1)

Add comment

Leave a comment

  1. DoZa_Ot_NaRkOzA
    DoZa_Ot_NaRkOzA
    20 February 2021 17:49

    XD XAXXXAAXA.Spassibo admin i aftor.laughingsmile

    SHyaz proweryu

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password