jacob404 / promod-future

GNU General Public License v3.0
7 stars 1 forks source link

Add custom boss spawning to maps #2

Open mikehabibi opened 9 years ago

mikehabibi commented 9 years ago

Instead of utilizing Valve's spawning mechanism (location, %), allow this to be configured by the user and/or by comp configuration. For each map, a list of locations/percentages can be specified. It can either randomly select between them, or optionally, allow configuration to weight the probability of certain ones being selected. As a hypothetical example:

c1m1
{
  tank
  {
    // x,y,z is spawn location
    // percentage is survivor map completion
    // probability is the likelihood of using this spawn point
    // x,y,z,percentage,probability
    1100,2200,3300,27,75
    4400,5500,3300,73,20
    300,400,3300,5,5
  }
  witch
  {
    ....
  }
}
jacob404 commented 9 years ago

Possibly add outline around each tank spawn so infected and survivors know exactly where the tank will trigger. Can use the scavenge "start round perimeter" method.

jacob404 commented 9 years ago

https://github.com/jacob404/promod-future/blob/master/addons/sourcemod/scripting/custom_boss_spawns.sp

Here's some pseudo code I wrote while bored. It will have to be rewritten with actual stuff, but the create tank entity portion is accurate and is how we should spawn the tanks.

jacob404 commented 9 years ago

im gunna push an update to this code tonight. im just trying to decide how i want to do the kv file formatting..