Introduction: Long time ago (2006-12-29) i made an unofficial release of CSDM
(based on 2.1f by KWo) with bunch of fixes & gamplay changes to make
it best suited to original deathmatch rules. It was much faster for me
to do it by myself than to ask for a feature or to persuade original
contributors to do the right (IMHO) thing. But the core had some
serious errors i couldn't fix on scripting layer. When 2.1h has come
i realized that it's a headache to merge my changes every time a new
official release is published. So, i've decided to 'bomb' a CSDM bug
tracker with issues (currently i posted 14 issues) and quickly fix
problems in parallel to avoid changes in original CSDM code.
But it's very hard to fix them from outside of the CSDM source code.
So, here is limited number of fixes & improvements which can be
technically implemented without modifing the original source code.
And remember that BAILOPAN & Faluco solely rules the official CSDM.
If you don't vote for fixes & improvements they'll
consider them on their own. So, check them here and vote.
Also don't forget to support KWo's contribution.
Info:
This is a CSDM plugin with purposes & features mentioned below.
It will work only if CSDM is enabled.
Requirements:- CS/CZ mod
- CSDM 2.1 or higher
Installation:- put 'csdm_normalizer.amxx' into plugins-csdm.ini file BEFORE
'csdm_itemmode.amxx' string; KWo's CSDM 2.1i users may put this file
anywhere within plugins-csdm.ini
Purposes:
1) patch CSDM issues until they (may) go into the main branch
2) normalize CSDM gameplay if possible
3) extend CSDM functionality if possible
Current features:- blocks 'Fire in the hole' message & radio if FFA mode is on
- precaches 'sprites/640hud2.spr' (it contains fixed sprites for
item_healthkit & item_battery)
- shows item icons on HUD when player picks up an item (healthkit or
battery) when item mode is enabled
- doesn't show BUY hint when buying is blocked
- hides money on HUD when buying is blocked
- hides timer on HUD when CSDM has stripped everything CS-related
- players can grab dropped weapon as ammo bonus if they already have
carried the same weapon type
- new cvars (see blow)
Notes:- all cvars are read on map start, round restart or when CSDM is
switched on due to optimization purposes & CSDM concept
(this behaviour may be changed in future)
- timer & money hiding feature is disabled (ignored) when using
csdm.cfg from KWo's CSDM 2.1i (it is built-in there already)
- when csdm_weaponpickupbonus = 1 empty weapons still give you an
ammo bonus; this is a feature due to mode 1 concept; try mode 2 to
overcome this issue
New cvars:- csdm_welcome <0|1> (default=1)
enable/disable welcome message in chat area
- csdm_dynammorefill <0|1> (default=0)
enable/disable dynamic ammo refill (new ammo refill algorithm)
which looks very attractive & lets players to grab items
also (if item mode is activated); this cvar is considered only
if 'ammo_refill' is OFF within csdm.cfg under 'misc' section
- csdm_weaponpickupbonus <0|1|2> (default=1)
configure picking up of a weapon (which player already has) as ammo
bonus; can be used in item mode only:
0 - turn off
1 - give bonus as full ammo clip
2 - give bonus as an exact number of bullets left in a weapon clip
(this mode a little bit more CPU consumpting than mode 1)
- csdm_weaponpickupmod <flags> (default=<none>)
modify weapon pickup bonus algorithm:
a - consider bonus weapons by weapon class (in CSDM context, i.e.
by clip viewmodel) rather than by exact weapon type
b - leave empty weapons on ground; this flag is considered only
when csdm_weaponpickupbonus = 2
- csdm_allowhidemoney <0|1> (default=1)
allow plugin to hide money on HUD:
0 - never hide money on HUD
1 - allow hide money when buying is blocked
- csdm_allowhidetimer <0|1> (default=1)
allow plugin to hide timer on HUD:
0 - never hide timer on HUD
1 - allow hide timer when everything CS-related is stripped by CSDM
Credits:- KWo for his faithfull & continued contribution into CSDM code
even though most of his improvements won't go into official 2.2 release
- VEN for his No Objectives plugin whence i've learned how to hide
standard items from HUD
Changelog:
Code:
CSDM_VERSION.5 [2007-09-20]
+ plugin now compatible with KWo's CSDM 2.1i
* removed item mode restriction on grabbing dropped weapons as ammo bonus
+ added 'csdm_weaponpickupmod' cvar
! fixed: player grabbed a weapon as bonus even if he had a full backpack
ammo
! may be fixed: sprite '640hud2.spr' was not precached truly again
CSDM_VERSION.4 [2007-06-12]
! sprite '640hud2.spr' was not really precached
+ timer can be hidden now if everything CS-related is stripped by CSDM
+ added version public cvar
CSDM_VERSION.3 [2007-06-05]
+ players can grab dropped weapon as ammo bonus if they already have
carried the same weapon type (works if item mode is enabled only);
this won't work for spawned weapons until some changes in original
csdm_itemmode.sma are made
+ admin can block hiding money from HUD (req. by Juba_PornBorn)
! fixed an issue when item sprites were not shown on HUD on item pickup
after CSDM switching (dynamic register/unregister of pre-Touch forward
was a bad idea)
* optimization of ammo refill algorithm
CSDM_VERSION.2 [2007-05-29]
+ added dynamic refill algorithm
CSDM_VERSION.1 [2007-05-28]
* first internal release
Attached 640hud2.zip contains fixed sprite only.
Attached .amxx is compiled for CSDM 2.1i by AMXX 1.76d compiler.
Previous versions are packed into ZIP archives.