View Single Post
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 01-03-2010 , 14:36   Re: [L4D2] Weapon Unlock
Reply With Quote #6

Quote:
Originally Posted by AtomicStryker View Post
It fakes it. It spawns a Bot, gives him all weapons, then lets the server hibernate again.

If a Lobby joins map is changed, so everything needed to initialize the weapons is done.


Then, on Map Start, this Plugin loops through all weapons spawns and randomly replaces those with unlock weapons.
That is precisely right! I tried spawning the weapons on plugin start, but that just crashed the server. I can try a few other things, but this seems to work for now.

As far as the weapon spawns, that not *exactly* right. It only looks for the dynamic weapon spawns and alters them based on the odds the weapons would have had to spawn if the director had them in the rotation.

Last edited by Crimson_Fox; 01-03-2010 at 14:41.
Crimson_Fox is offline