Ninja powerup shouldn't spawn directly

This commit is contained in:
Olle Rosenquist 2007-07-23 17:50:55 +00:00
parent 8be353d62c
commit 8714046db0
3 changed files with 34 additions and 2 deletions

View file

@ -119,4 +119,5 @@ const array:int sound = sounds.*
const array:int image = images.*
const array:int sprite = sprites.*.*
const array:int anim = animations.*
const array:int gametype = playerstats.*
const array:int gametype = playerstats.*
const array:int powerup = powerups.*

View file

@ -9,6 +9,12 @@ struct weapon {
int velocity = velocity@1
}
struct powerupinf {
int amount = amount@1
int respawntime = respawntime@1
int startspawntime = startspawntime@1
}
struct playerstats {
int maxhealth = maxhealth@1
int maxarmor = maxarmor@1
@ -17,8 +23,10 @@ struct playerstats {
struct data_container {
array:weapon weapons = weapons.*
array:playerstats playerinfo = playerstats.*
array:powerupinf powerupinfo = powerups.*
}
const array:int sound = sounds.*
const array:int weapon = weapons.*
const array:int gametype = playerstats.*
const array:int gametype = playerstats.*
const array:int powerup = powerups.*

View file

@ -207,6 +207,29 @@ particles {
}
}
powerups {
health {
amount 1
respawntime 15
startspawntime 0
}
armor {
amount 1
respawntime 15
startspawntime 0
}
weapon {
amount 10
respawntime 15
startspawntime 0
}
ninja {
amount 1
respawntime 90
startspawntime 90
}
}
playerstats {
dm {
maxhealth 10