removed unused check for a damage type in dmg2score
I thought fire damage was from torches on maps which would burn players
who stand on them, apparently it's from fireball superweapon and napalm
grenades which are used weapons and thus have a registered attacking
player so they'd never pass the check for the source not being a player
thus being unused
added friendly fire and self damage handling to dmg2score
some players might try to cheese or avoid giving other players score and
thus suicide or do self damage, they are now punished for it but they
are not punished while having a logged attacker so getting pushed into a
void doesn't punish the dying player as long as pusher is given score. I
assume DEATH_FIRE is an environmental hazard but I don't know any maps
which'd have it for testing though if it's a weapon effect which
registers an attacker it's irrelevant except for being unused code.
Added cvars to support changing how score is calculated
added a cvar for toggling if frags give 1 score or not, added a cvar for
toggling if damage gives score or not and added a cvar for changing how
much score damage gives
drjaska [Mon, 8 Mar 2021 19:11:16 +0000 (21:11 +0200)]
Added tmayhem regeneration cvar which I previously forgot to include
outside of sv_tmayhem.qc, whitelisted powerup, team and weaponarena
cvars as other modes have theirs whitelisted.
drjaska [Sun, 7 Mar 2021 02:59:16 +0000 (04:59 +0200)]
Changed the menu order to show mayhems above unpopular modes. Included
tdm in the force support hook so now mayhems are supported if either DM
or TDM are supported.
drjaska [Sun, 7 Mar 2021 02:47:35 +0000 (04:47 +0200)]
Added support for removing powerups only from mayhem. Added a force
support mapinfo hook which makes maps support mayhem and team mayhem if
they support dm. Improved the remove powerup hook logic to consider
g_powerups and g_(t)mayhem_powerups variables. Still missing icons.
drjaska [Sat, 6 Mar 2021 03:22:25 +0000 (05:22 +0200)]
Created Team Mayhem too. AFAIK both modes are perfectly functional as
they are now. Having powerups would be nice. Missing new icons for
mayhem and team mayhem. Mapinfos are not yet regenerated.
drjaska [Sat, 6 Mar 2021 02:23:08 +0000 (04:23 +0200)]
Gameplay-wise the mode is fully functional, AFAIK there are no hooks to
prevent rotting but if someone really wants regen without rot they can
edit cvars and go into modified, idc. Only things left to add to ffa
mayhem are a new icon and fixing map info. Going to start creating team
mayhem mow.
drjaska [Sat, 6 Mar 2021 01:37:39 +0000 (03:37 +0200)]
fixed a compile error, all the hooks work now, need to find a way to
disable self damage and hp&armor rot. need to find the file to write
default values for g_mayhem_ regeneration and weaponarena. need to add
a new icon for mayhem. need to look into mapinfo regeneration.
drjaska [Fri, 5 Mar 2021 22:46:48 +0000 (00:46 +0200)]
sv_lms.qc had boolean autocvar_g_lms_regeneration at the top which I
didn't notice when I copied the PlayerRegen hook. It still didn't create
a cvar, FilterItem is broken idk why, SetWeaponArena is brokem idk why,
autocvar does nothing idk why. I don't understand what disables fall
damage and self damage in CA, still missing a new icon for mayhem. None of the existing maps allow mayhem as mayhem isn't listed in their pre-generated mapinfos, idk how to regenerate them so mayhem can actually be played on proper maps. I can't
figure out why nothing works pls send help... likely going to drop
further development unless I get help.
terencehill [Wed, 3 Mar 2021 22:51:24 +0000 (23:51 +0100)]
Print an error message if gametype and gotomap are executed when the server isn't running, rather than showing nonsense output (gametype in particular)
terencehill [Wed, 10 Feb 2021 01:44:27 +0000 (02:44 +0100)]
Standardize command usage messages:
argument: keyword
<argument>: input parameter
"<arguments>": input string that can contain multiple words
When an argument is enclosed by [] it means it's optional
While at it fix cmd voice, improve menu_cmd, menu_cmd directmenu and cl_cmd hud
terencehill [Mon, 25 Jan 2021 16:49:20 +0000 (17:49 +0100)]
Improve detection of overlapping player tags by checking if the boxes they are contained in overlap rather than if distance of box origins is smaller than a certain value