Server Mods‎ > ‎

Rifle Mod


Rifle Mod is an Alien Swarm server-only mod that forces players to play with assault rifles only, harder aliens, more ammo, smarter bots. However rifle only restriction can be disabled and a number of modifications can be turned on during briefing, see commands. Can be installed on a dedicated server or on a regular game. 
Check out the Feedback thread for the latest version

Download Source Code

https://github.com/geotavros/riflemod

Installation Instructions

1. Download the regular Alien Swarm Dedicated server
2. Download Riflemod's server.dll file. See links above
3. Copy with replacement Riflemod's server.dll to swarm/bin
4. Make sure you have sv_allow_lobby_connect_only 0 set in your swarm/cfg/server.cfg to prevent often server crashes
5. Start the dedicated server

You can also host a Riflemod server from the game directly. All you need is to do steps 2, 3 listed above and start the game as usual. But backup the files you're replacing to be able to revert later. Usually Alien Swarm folder is located here:
C:\Program Files (x86)\Steam\SteamApps\common\alien swarm\

Feedback

http://steamcommunity.com/app/630/discussions/0/864951362264201844/

Features

- Forced assault rifle as a primary weapon
- Players now don't die but lose consciousness, conscious player can revive a teammate by holding E (USE) key
- Forced ammo satchel as a secondary weapon. But player is allowed to choose any sentry gun as a secondary weapon 
- Choosable extra item(adrenaline, freeze grenades etc)
- Increased ammo satchel clip size to 16
- Flamer doesn't ignite aliens but causes damage
- Slow health regeneration. +5hp every 5 sec.
- Increased health and speed of aliens but decreased damage
- Bots are automatically added to fill free slots
- Drop-in. If you add bots and play with them the newly connected player will be able to play by taking one of the bots. 
- Bots are smarter. They take less damage then players and reload very fast, they don't die from parasites' infestation, can follow you through tons of aliens. But bots are still stuck if Mortar bug shoots. You need to quickly eliminate Mortar bug. 
- Aliens attack sentry guns and can destroy them
- Biomass can be ignited by an explosion from a grenade

Server Console Variables

// These cvars control health scale of aliens for each difficulty:
asw_alien_health_scale_easy 0.1
asw_alien_health_scale_normal 1.5
asw_alien_health_scale_hard 2.6     // equal to Brutal Alien HP
asw_alien_health_scale_insane 3.1
asw_alien_health_scale_brutal 3.8

rm_alienspeedmax 3.0
The maximum allowed value of rm_alienspeed modifier

rm_alienspeedmin 1.0
The minimum allowed value of rm_alienspeed modifier

rm_bots 1
cvar if 1 adds bots to each round by default. Can be overridden by rm_bots leader command

rm_default_mod 0
(1 by default) is a cvar which allows server administrator to force the default game mode this server will be started with. 0 = default Alien Swarm, 1 = Rifle Mod Casual, 2 = Level One Challenge, 3 = Rifle Run, 4 = Bullet Storm, 5 = Solo Player



rm_destroy_empty_weapon 1

If 1 empty weapon such as freeze grenades gets destroyed. If 0 the weapon stays. Was used for timed 3rd item regeneration. Default 1

rm_health_regen_interval 5
Interval between health regeneration. Default 5

rm_health_regen_amount 5
Amount of health regenerating. Default 5

rm_health_decrease_amount 7
Amount of health decreasing during incapacitated

These cvars control how much aliens spawn if rm_prespawn 1
rm_prespawn_num_boomers 3
rm_prespawn_num_buzzers 1
rm_prespawn_num_drones 15
rm_prespawn_num_harvesters 4
rm_prespawn_num_mortars 2
rm_prespawn_num_parasites 7
rm_prespawn_num_rangers 2
rm_prespawn_num_shamans 5
rm_prespawn_num_shieldbugs 1
rm_prespawn_num_uber_drones 2

rm_ready_mark_override 0
If set to 1 all players will be auto ready, the green ready mark will be set to

rm_update_sv_tags 1
If 0 sv_tags will not be updated on difficulty changes. Which helps if sv_steamgroup have more then one group assigned. Prevents spam in chat

rm_welcome_message "Welcome to Rifle Mod"
The message that is displayed to each player after they join the server.

rm_welcome_message2 "Good luck and have fun"
The message that is displayed to each player after they join the server. Because there is a 255 character limit for a cvar.

Client Console Commands

These commands can be issued by any player(client) during the game.

asw_afk

this command allows you to leave the current marine if you need to go afk, the bot will control your marine

asw_DropExtra 
this command allows you to drop your 3rd item(extra). Bind it to some key using "bind t asw_dropextra"

Client Leader Console Commands

These are the console commands which only party leader can issue in console. They modify gameplay rules. They only work during briefing(before mission start).

rm_alienspeed 1.3
Available to leader only during briefing screen. Scales aliens' speed. Values from 0.1 to 3 are excepted. Default is 1

rm_bots 0
Available to leader only during briefing screen. Disables or enables automatic bots adding at the round start. Default is 1

rm_carnage 2
Available to leader only during briefing screen. Scales the amount of aliens(drones only). Correct values from 1 to 15. Type rm_carnage 3 during briefing in console to activate this mode with x3 multiplier. This mode needs to be reactivated if map was restarted or changed 

rm_challenge 0 
Available to leader only during briefing screen. Activates a challenge which is a modification of game rules, like Rifle Mod, ASBI or Ch1ckensCoop. 0 - Regular Alien Swarm game rules, 1 - Rifle Mod Classic rules, 2 - "Level One Challenge" only weapons of first level are allowed, 3 - "Rifle Run challenge" which is basic Alien Swarm but with rifles only.

rm_flamer 0
Available to leader only during briefing screen. If 0 converts flamers to rifle on mission start

rm_heavy 2
Available to leader only during briefing screen. Scales aliens' health. Values from 0.1 to 15 are excepted. Default is 1

rm_hpregen 0 
Available to leader only during briefing screen. Disables or enables health regeneration. Default is 1

rm_refill_secondary 0
Available to leader only during briefing screen. When player picks up ammo secondary ammo(grenades for rifles) is also refilled. 0 disables this behavior and makes game more hardcore. Default is 1

rm_revive 0
Available to leader only during briefing screen. If 0 disables reviving, 1 enables reviving. Default is 1

rm_weapon 5 
Available to leader only during briefing screen. Sets the default weapon for weapon restricted mode(Rifle Mod), values from 0 to 20 are accepted. The default value is 0 which is Assault Rifle

rm_weaponreq 0
Available to leader only during briefing screen. If 0 deletes flamer(or other weapon) requirement to start mission.

rm_weapons 0
 
Available to leader only during briefing screen. Allows to use all weapons in Rifle Mod. Excepts values 0 - Enable all weapons, 1 - Only rifles, 2 - Level One weapons only. Default is 1

Changelog

2015.09.29
- Added rm_spawners_infinite and rm_slowmo. rm_spawners_infinite 1 is a leader command to make all spawners infinite. rm_slowmo 0 is a leader command to disable slow motion effect on maps. Adrenaline still works and does manual slow motion effect
- Fixed aliens target incapacitated marine. This is done by changing incapacitated marine faction to FACTION_NONE. Although it is still not working perfectly
- Fixed mortarbug put to sleep by electro stun
- Fixed shieldbug put to sleep by electro stun
- Fixed knocked down marines teleportations
- Added cvar rm_health_decrease_amount. Knocked out marines now have decreasing health, when they run out of health they die. rm_health_decrease_amount is 7 by default means that health decreases by 7 points every 5 seconds.
- Fixed ECA clien crash.
- Added rm_welcome_message2 cvar
2015.09.10
- Fixed bots are stuck when out of ammo
- Fixed medic bot not healing with med gun
- Fixed hordes falling through ground
- Hidden onslaught drone at 0,0,0 coordinate
- Scaling horde size using rm_carnage setting
- Added rm_weaponreq leader command if 0 deletes flamer(or other weapon) requirement to start mission.
- Fixed bots stucking on mortar grenades
- Added rm_challenge 3 which enables Rifle Run challenge which is basic Alien Swarm but with rifles only.
- rm_default_game_mode (1 by default) is a cvar which allows server administrator to force the default game mode this server will be started with. 0 = default Alien Swarm, 1 = Rifle Mod Casual, 2 = Level One Challenge, 3 = Rifle Run
- Added rm_flamer leader command if 0 converts flamer to rifle on mission start
- Added rm_add_bots_by_default cvar if 1 adds bots to each round by default
2014.03.03
- rm_weapons 2 command allows weapons: Rifle, Vindicator, Autogun, Pistols, Sentry, Ammo, Heal
- rm_hpregen 0 command disables health regeneration. 
- rm_bots 0 command disables automatic bots adding at the round start
- rm_weapon 5 command Sets the default weapon for weapon restricted mode(Rifle Mod), values from 0 to 20 are accepted. The default value is 0 which is Assault Rifle
- rm_challenge 0 Activates a challenge which is a modification of game rules, like Rifle Mod, ASBI or Ch1ckensCoop. 0 - Regular Alien Swarm game rules, 1 - Rifle Mod Classic rules, 2 - "Level One Challenge"
2014.02.13
- Print a message that marine is incapacitated
- Fix aliens' incorrect spawn on railings when rm_carnage is used. Mostly noticeable on Cargo Elevator mission
2014.02.06
- Fixed flamer doesn't ignite aliens when all weapons are allowed
- Added rm_vevive command to turn reviving on and off
- Fixed ammo count for all weapons allowed mode
2014.02.04
- Added revive ability. Players now don't die but lose consciousness, conscious player can revive a teammate by holding E (USE) key
- Added a bunch of new commands. rm_weapons, rm_alienspeed, rm_heavy etc
- Added spectator ability. If the server is full you can join it by typing connect server_ip:port in console 
2014.01.14
- Biomass can now be ignited by an explosion from a grenade
- Flamer is not given to medics on Residential map
- Extra item(3rd item) is removed when it has 0 ammo
- Added rm_destroy_empty_weapon cvar
2013.12.28
- Removed infinite ammo
- Removed extra item regeneration
- Added when picking-up ammo for rifle you also pick-up grenades for rifle
- Added ammo_satchel weapon by default, you can still change it to sentry
- Added frags counter
- Added rm_carnage mode for leader only
- Decreased bots' hull size to be able to pass through aliens
- Increased ammo satchel clip size to 16
- Ammo satchel clip size is scaled with rm_carnage multiplier
Previous versions:
- Add bots by default
- Bots must follow the leader
- Fix messages
- Infinite flamer ammo
- Fix medkit bug
- Decrease drone's uber hull size
- asw_dropextra