Raised This Month: $ Target: $400
 0% 

[L4D2] Dynamic Path Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 02-15-2010 , 15:35   Re: [L4D2] Dynamic Path Manager
Reply With Quote #1

Youre doing it wrong, man.


Understand some principles:

OnMapSpawn gets called ONCE when a map loads.

OnMultiNewRound gets called on every round_start even in L4D2, which means twice in a versus round.


Using BOTH is unwise and will only lead to confusion, particularly if you want something random to happen.

Then, youre spawning the wrong shit. weapon_first_aid_kit_spawn is a medkit "spawning entity". Once a new round starts, the Director will fill it as he sees fit (which usually means spawning all meds he can). You do not want to create those 'Spawners', but medkits themselves.

Alternatively, create a code that wipes existing medkits in these spawns on a new round, and then randomly forces new spawns to happen.
AtomicStryker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode