PDA

View Full Version : Mini Mods: difficulty configs and difficulty changes


xehonk
07-31-2010, 06:40 PM
Hello,

I thought I could share my mini mods with you, in case anyone else wanted something similar. Both mods require sourcemod to be installed.

difficulty configs
This mod causes alien swarm to execute a config (skill_1.cfg - skill_4.cfg) whenever the difficulty (asw_skill) of a game is changed. This allows for more flexibility when hosting a game (i.e. enabling asw_horde_override on easy to hard and disabling it on insane).
2010-08-23: execute configs again after each map change.
2010-08-24: execute configs for onslaught and hardcoreff, too:
onFF_abs0_sg1, onFF_abs1_sg0, onOnslaught_hor0_wan0, onOnslaught_hor1_wan1
2010-08-25: uploaded the correct files for the 2010-08-24 update.
2010-08-29: configs are now also executed on mapchanges without active players.

source(sp) (http://naru.mooo.com/files/asw/exec-skills/2010-08-29/asw-exec-skills.sp)
bin(smx) (http://naru.mooo.com/files/asw/exec-skills/2010-08-29/asw-exec-skills.smx)

basecommands.smx
Use sourcemod's builtin functionality (in basecommands.smx) to change servervariables which are marked as cheats, e.g.:
- sm_cvar asw_marine_time_until_ignite 0


Both mods together allow for a greater flexibility with regards to the difficulty of the game when hosting. Setting asw_marine_time_until_ignite to 0 also greatly increases the risk of using the flamethrower, which (in my oppinion) makes for better gameplay.





difficulty mod (unnecessary - sourcemod can do it)
The second mod simply disables the cheat flag on certain difficulty related variables, so that the server admin can change them for harder gameplay. The variables are
asw_marine_time_until_ignite, asw_horde_size_max & min, asw_adjust_difficulty_by_number_of_marines, asw_horde_interval_max & min, asw_marine_death_protection.
source(sp) (http://naru.mooo.com/files/asw/asw-harder.sp)
bin(smx) (http://naru.mooo.com/files/asw/asw-harder.sp)

mr turkey40
07-31-2010, 09:38 PM
(at #2) If they download smx then they obviously will have sourcemod. If they have sourcemod then they can just use sm_cvar. You're first one is nice though :D

xehonk
07-31-2010, 11:44 PM
Thank you, I was not aware of that. =)

turtlesoup
08-04-2010, 08:02 PM
(at #2) If they download smx then they obviously will have sourcemod. If they have sourcemod then they can just use sm_cvar. You're first one is nice though :D

does sourcemod work for alien swarm? I'm new to sm and and source in general, and from what I found there was no version out that works with this game yet.

xehonk
08-04-2010, 08:13 PM
There are (and have been for a while) beta versions available: I'm currently using metamod build 736 and sourcemod build 3026. No problems so far. :)

BrentNewland
08-07-2010, 06:10 PM
I think you might want to add in the following ones too:

asw_max_alien_batch (number of aliens the AI director spawns at one time? Should spawn up to this many in waves until the
enemy limit is reached)
asw_director_relaxed_min_time (Minimum amount of time that the director will not respawn enemies, default 25)
asw_director_relaxed_max_time (Max amount of time that the director will not respawn enemies, default 40)

xehonk
08-07-2010, 08:06 PM
AS mr turkey40 pointed out, you can simply use sourcemod's built in functionality:
"sm_cvar asw_director_relaxed_min_time 10" in your server config will do the trick, even though the variable will still be marked as cheat.