Page 1 of 1

Why Zandronum doesnt like the Spheres :(

Posted: Mon Dec 08, 2014 5:08 pm
by De-M-oN

Code: Select all

ACTOR RageSphere : PowerupGiver 12572
{
  +COUNTITEM
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.BIGPOWERUP
  Inventory.MaxAmount 0
  Powerup.Duration -60
  Powerup.Color 255, 0, 0, 0.125
  Inventory.PickupMessage "Firerate Sphere(x2)"
  Powerup.Type "PowerDoubleFiringSpeed"
  States
  {
  Spawn:
    BLDS ABCDCB 6 Bright
    Loop
  Pickup:
	 TNT1 A 0 A_SelectWeapon("Melee")
	 TNT1 A 0 A_GiveInventory("PowerStrength")
     TNT1 A 0 HealThing(100,0)
	 Stop
  }
}
ACTOR PowerDoubleFiringSpeed : Powerup native {}
For example this sphere. This sphere is of realm667, except the last line. I added this line, because zandronum moaned about sth like it was referenced, but not defined and found in wiki this line.

Now it does this:

Image

What is zandronum's problem with my (or better said realm667's) Spheres? :(

This one doesnt work either:

Code: Select all

ACTOR PowerUberAmmo : PowerupGiver
{
	Inventory.Amount 1
	powerup.duration -120
	Powerup.Type PowerInfiniteAmmo
	Powerup.Color Green 0.15
	Inventory.PickupMessage "Backpack with so much Ammo that it bursts into pieces after 2 minutes!"
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
}

actor Megapack : CustomInventory
{
  Inventory.PickupMessage "Backpack with so much Ammo that it bursts into pieces after 2 minutes!"
  Inventory.Amount 1
  Inventory.PickupSound "misc/megapack"
  +INVENTORY.FANCYPICKUPSOUND
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.BIGPOWERUP
  +COUNTITEM
  states
  {
  Spawn:
	BPK2 A -1
	Stop
  Use:
	TNT1 A 0 A_GiveInventory("PowerUberAmmo")
 	TNT1 A 0 A_GiveInventory("Backpack")
	Stop
  }
}
ACTOR PowerInfiniteAmmo : Powerup native {}
gives the same error.

RE: Why Zandronum doesnt like the Spheres :(

Posted: Mon Dec 08, 2014 5:47 pm
by Ijon Tichy
You can't define actors with the native keyword (because their behaviour is in the engine itself), and PowerDoubleFiringSpeed isn't in Zandronum. If you really need the effect, either code it into the weapons you're making or give RuneDoubleFiringSpeed and take it away after 30 or so seconds.

RE: Why Zandronum doesnt like the Spheres :(

Posted: Mon Dec 08, 2014 6:52 pm
by De-M-oN

Code: Select all

ACTOR RageSphere : PowerupGiver 12572
{
  +COUNTITEM
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.BIGPOWERUP
  Inventory.MaxAmount 0
  Powerup.Duration -60
  Powerup.Color 255, 0, 0, 0.125
  Inventory.PickupMessage "Firerate Sphere(x2)"
  Powerup.Type "PowerStrength"
  States
  {
  Spawn:
    BLDS ABCDCB 6 Bright
    Loop
  Pickup:
	 TNT1 A 0 A_SelectWeapon("Melee")
	 TNT1 A 0 A_GiveInventory("PowerStrength")
	 TNT1 A 0 A_GiveInventory("PowerFirespeed")
     TNT1 A 0 HealThing(100,0)
	 Stop
  }
}
ACTOR PowerFireSpeed : what must be here?
{
	DamageFactor "Normal", 2    (now just for fire rate instead - is at least this possible? What to put in here, if so?)
}
And I assume for the backpack it is the same? PowerInfiniteAmmo unsupported - right? :(

Please help me a bit, I'm not good at coding at all.

RE: Why Zandronum doesnt like the Spheres :(

Posted: Mon Dec 08, 2014 7:32 pm
by -Jes-

RE: Why Zandronum doesnt like the Spheres :(

Posted: Tue Dec 09, 2014 6:07 pm
by De-M-oN
So there is no way to make this sphere and backpack possible? :(

RE: Why Zandronum doesnt like the Spheres :(

Posted: Tue Dec 09, 2014 8:17 pm
by TerminusEst13
Not without rewriting every single weapon.

RE: Why Zandronum doesnt like the Spheres :(

Posted: Tue Dec 09, 2014 8:26 pm
by De-M-oN
Awesome.

dear zandronum - please get a newer gzdoom base :S

RE: Why Zandronum doesnt like the Spheres :(

Posted: Tue Dec 09, 2014 8:53 pm
by Ænima
De-M-oN wrote: Awesome.

dear zandronum - please get a newer gzdoom base :S
http://zandronum.com/forum/showthread.php?tid=5380