[CS:GO] Map Weapon Randomizer

Post Reply
User avatar
Andreeas
Hero Member
Hero Member
Posts: 601
Joined: Wed Jan 22, 2020 8:17 pm
Jucator SA:MP ?: Nu
Nick:: Andreeas
Jucator CS ?: Nu

[CS:GO] Map Weapon Randomizer

Post by Andreeas »

Map Weapon Randomizer

This plugin automatically replaces all weapon spawns on any map with random weapons. Grenades are excluded. The list of weapons can be changed by modifying the WEAPONS_LIST array at the start of the script. By default all primary weapons are included.

How it works

At the start of the map, this plugin will find all weapon spawns by searching for weapon_* entities, saves their locations, and deletes them. Then, at the start of every round, the plugin will spawn a weapon into the saved locations.

Note that since creating weapons directly using weapon_* entities does not work anymore, this plugin spawns weapons using the fake client method, where it spawns a fake client, gives a weapon to it, and teleports it to the desired location on the map. This likely means that there has to be at least 1 free slot on the server for the plugin to work.

Features
- Randomize weapon spawns either at the start of the map or every round.
- Snap spawned weapons' angles to 90 degrees for a better look
Cvar
mwr_randomize_every_round 0 Randomize weapons every round if enabled, otherwise randomize once at the start of the map.
mwr_snap_spawn_angles 1 Round spawned weapons' angles to the nearest 90 degrees for a more uniform look. Takes effect after a map change.
mwr_debug 0


Download
Source
Post Reply

Return to “Gameplay”