Coder Social home page Coder Social logo

rtxa / agmodx Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 9.0 6.44 MB

AG Mod X is an improved Mini AG alternative made as a plugin for AMX Mod X from the ground. It's easy to add new stuff, make improvements, do changes, etc.

License: GNU General Public License v3.0

SourcePawn 8.26% Pawn 91.74%
amx-mod-x half-life adrenaline-gamer pawn mini-ag amxx ag-mod

agmodx's People

Contributors

7mochi avatar rtxa avatar

Stargazers

 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

agmodx's Issues

Explore executing a default game mode config

I'm thinking of adding a gamemode_default.cfg which will be executed when we switch of game mode.

This will avoid the need of resetting all the cvars by yourself on your game mode config.

Possible issues are players voting custom options like mp_timelimit and losing the changes on map change, but this should be adressed by online resetting on game mode switch.

Not sure if we can add more things like a _pre and _post config.

Compatibility with GunGame

Hello,

I tried all the versions and I can't find one compatible with GunGame for hl. The plugin is working but it doesn't refill the ammo for the weapons.

Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.9.0.5  ini   Start ANY  
 [ 2] FakeMeta         RUN   -    fakemeta_amxx.dl  v1.9.0.5  pl1   ANY   ANY  
 [ 3] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.9.0.5  pl1   ANY   ANY  
 [ 4] Fun              RUN   -    fun_amxx.dll      v1.9.0.5  pl1   ANY   ANY  
 [ 5] Engine           RUN   -    engine_amxx.dll   v1.9.0.5  pl1   ANY   ANY  
5 plugins, 5 running
] version
Protocol version 48
Exe version 1.1.2.7 (valve)
Exe build: 15:34:33 Jun 15 2009 (4554)

Same issue for the BugfixedHL version 1.5.1 . The only version I could find to work is bugfixed.HL.0.1.910.
So, I think is something wrong in the .dll and .so file (tested on Windows and Linux)

Server always restarting as TDM crossfire

As the title says, the server will always restart as tdm crossfire making impossible to have a specific gamemode sv running 24/7.

Steps to reproduce it:

1- Set sv_ag_gamemode and sv_ag_allowed_gamemodes (in startup_server.cfg) as arena or any other gamemode.
2- Run or restart the server.

The server will run as TDM no matter what unless you change it manually through vote/rcon.

But, if instead of startup_server.cfg we use amxx.cfg, it will remain as TDM as well but at least it will change to the desired gamemode right after we change the map.

I also noticed it restarts in crossfire, regardless of how what's written in mapcycle.txt

Issue does not occur in original AG.

Changing gauss damage behaviour for Instagib

Using Gauss at wrong angles deals self damage, and since Gauss damage is highly increased in this gamemode it ends up in self kill (even with mp_selfgauss 0 which doesn't affect in this case). Is it possible to change its behaviour so that this doesn't happen?

Host Error

I get this error when loading agmodx 2.5.1 full for linux.

I have rehlds in its latest version

`
Protocol version 48
Exe version 1.1.2.2/Stdio (valve)
Exe build: 03:13:55 Oct 25 2021 (2753)
Server IP address 45.235.98.64:27022

Metamod version 1.21p38 Copyright (c) 2001-2013 Will Day
Patch: Metamod-P (mm-p) v38 Copyright (c) 2004-2018 Jussi Kivilinna
Metamod comes with ABSOLUTELY NO WARRANTY; for details type meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; type meta gpl' for details.

==================
Game DLL version mismatch
DLL version is 140, engine version is 140
The game DLL for valve appears to be outdated, check for updates

Host_Error:
`

Unable to get agmodx working on pterodactyl

I've had this working on a windows client correctly, but when I try on a pterodactyl instance I get the following:

[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1705108307
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Success! App '90' already up to date.
:/home/container$ ./hlds_run -console -game ${HLDS_GAME} -port ${SERVER_PORT} -sport ${VAC_PORT} +map ${SRCDS_MAP} +ip 0.0.0.0 -strictportbind -norestart
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 70
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.2/Stdio (valve)
Exe build: 19:52:19 Aug 3 2020 (8684)
STEAM Auth Server
Server IP address 0.0.0.0:27025

Metamod version 1.21p39 Copyright (c) 2001-2016 Will Day
Patch: Metamod-P (mm-p) v37 Copyright (c) 2004-2016 Jussi Kivilinna
Patch: Metamod-P (mm-p) CMake v39 Copyright (c) 2016-2016 Sam Vanheer
Metamod comes with ABSOLUTELY NO WARRANTY; for details type meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; type meta gpl' for details.

==================
Game DLL version mismatch
DLL version is 140, engine version is 140
The game DLL for valve appears to be outdated, check for updates

Host_Error:
FATAL ERROR (shutting down): Host_Error:
MineCube: Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 255

I'm not sure this version works correctly after the 25th year anniversary. Even when selecting Steam Legacy as my build, this is the results when using the metamod dll's/so's in liblist.gam - Not sure what else to try.

Add a general menu (GUI)

Useful to present to the new players the new features of AG Mod X. Also useful for players who are not familiarized with the console.

  • Menu to use it as an admin
  • Display aglistvotes
  • Display gamemodes votes
  • Display custom agstart (allow to selects players - Up to 4)
  • Display forcespectator and forceteam
  • Display credits

Maybe add:

  • A menu to vote additional time, like 20 minutes, 60minutes, 999 minutes, and more

Explore improving AG pause reliability

Currently I use the id of the connected player, if he's not present, we use another player. This is not reliable and we should add a function in ReHLDS or something to pause the server whenever we need it from server-side.

Anyway, we should go back to use only the connected player, like AG does to avoid showing in console or make think other players that one player pause, but he actually didn't....

Arena: Add commands 'ready' and 'notready'

Possible problems:

  1. Players can use this as an advantage to spectate before they get killed, this should be penalized or not allowed on damage. Make it work maybe like the CombatLoggers from Minecraft.

  2. This should have the ability to get disabled.

Make mp_respawn_fix 1 a bit faster

I got some complaints about this command on my sv. When disabled obviosuly those with high FPS will respawn just too fast, but when enabled it's even worse, it's too slow.

With mp_respawn_fix 1 respawning takes almost 2 seconds while fps_max 125 takes 1.2 seconds approx. It may not be a big difference (less than a second) but especially for Crossfire players it's insanely slow, at high level it's impossible to stop the respawn killing spree if it takes you almost 2 seconds to go back in track and kill the one controlling the map.

Is it possible to pair it with the respawning time of 125fps? or even better, 250fps. Not saying 500 cause yeah it'll be too much.

AG Mod X not working

[ 16] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 21] AG Mod X Beta 2.5.2 rtxA agmodx.amxx debug
[ 22] AG Mod X Arcade Beta 2.5.2 rtxA agmodx_arcade.a stopped

I installed the plugin and updated everything but it doesn't work.

Add option to display AG HUD timer every X seconds

The new values for sv_ag_hud_timer will be:

  • 0: Disabled
  • 1: Display every second
  • 2: Display every minute

Import to note that when is set to every minute, the last minute will display always or every 30 seconds, or maybe the last 10 seconds.

Explore how to query CVars from players to enable certain features

One of the reasons to implement this feature is too see if players have available color codes in chat by querying aghl_version.

According to https://github.com/tmp64/BugfixedHL-Rebased/wiki/HTML-and-Unicode-MOTD

  1. Enable sv_bhl_query_vars. This will enable querying of aghl_supports client cvar to determine which MOTDs are supported.
  2. If the server supports old p47 clients (like NGHL), enable sv_bhl_query_wait_for_id to prevent them from being kicked with svc_bad error.
  3. Enable sv_bhl_defer_motd. It will defer sending of MOTD until after query response was received. It may delay showing of the MOTD dialog but usually query response arrives before client is fully loaded so there are no issues with that.

Basically, looks like this is achievable by just using AMXX. My biggest concern was how to know if the player is using BHL without crashing the client if he was using an old client (p47). Using the old-api should workaround the issue.

Suggestion: vote gamemode + map in one vote

The idea is to make one vote for both things instead of voting one first and then the other. Example:

agmap arena stalkx

Also it'd be better if the hud message says:

ADMIN x: changelevel arena stalkx

Execute server.cfg on map change

Currently this is not working, but with old HL builds this was the normal behavaiours.

This is causing problems with the server when a password is set with sv_password (Most of the time for a match) and the password not getting reset on map change.

One of the solutions that come in my mind is to set mapchangecfgfile server.cfg in startup_server.cfg.

Possible problems:

  1. Server owners sometimes replaces these CFGs with their own ones, then losing the settings. In any case, we should set this cvar with server_exec() to default from the AMXX plugin at server startup only.

Make clear that the cfg runs every changelevel to reset things like password, etc.

  1. We can check the value from the plugin itself and then execute server.cfg by default if it hasn't been set.

LTS: Don't display in the scoreboard that player is in spec mode

I believe this is the normal behaviour for AG.

Other reasons:

  1. This way the player will not know who is dead or not. We leave the count to the player instead.
  2. You can't really know who is really spectating or not (unless we add a chat tag for that)

PD: Maybe we should add for AG a way to display who is dead in the scoreboard, much more simpler.

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.