Page 1 of 1

Zandronum games' source?

Posted: Sun Mar 26, 2017 5:41 am
by LanHikariDS
Why isn't the code for gamemodes/Zandronum things on the Wiki? Like, Skulltag Spheres for example, the wikipage tells you a bit about what they do, and that's it. No code to learn from. Or maybe it's somewhere less obvious, then could someone please direct me to it and tell me I'm an idiot?

Re: Zandronum games' source?

Posted: Sun Mar 26, 2017 5:55 am
by Combinebobnt
https://bitbucket.org/Torr_Samaho/zandronum

dont worry u are not an idiot u are just smart in the not right direction maybe

Re: Zandronum games' source?

Posted: Sun Mar 26, 2017 3:33 pm
by LanHikariDS
I maybe should've clarified that better, I meant the Decorate and ACS source for the actual game modes in Zandronum, like Last Man Standing's ACS

EDIT: I take it back, Thanks! the game modes' source code is hiding in there as well. For anyone here looking for the answer as well, it's in the src folder of Zandronum's souce code, the .cpp files (example: "lastmanstanding.cpp")

Re: Zandronum games' source?

Posted: Sun Mar 26, 2017 3:53 pm
by Hypnotoad
Some of the decorate is in zandronum.pk3, and other older skulltag decorate is in skulltag_actors.pk3

Re: Zandronum games' source?

Posted: Sun Mar 26, 2017 4:07 pm
by LanHikariDS
I checked Skulltag_actors.pk3, and it's just the names of Skulltag actors inheriting from some internally defined class.
For example, here is a section of skulltagrunes.txt, called by that pk3's DECORATE:
[spoiler]

Code: Select all

ACTOR Rune : Powerup
{
}

ACTOR RuneDoubleDamage : PowerDamage
{
	Damagefactor normal, 2.0
}

ACTOR RuneDoubleFiringSpeed : PowerDoubleFiringSpeed
{
}

ACTOR RuneDrain : PowerDrain
{
}

ACTOR RuneSpread : PowerSpread
{
}

ACTOR RuneHalfDamage : PowerProtection
{
	Damagefactor normal, 0.5
}

ACTOR RuneRegeneration : PowerRegeneration
{
}

ACTOR RuneProsperity : PowerProsperity
{
}

ACTOR RuneReflection : PowerReflection
{
}

ACTOR RuneHighJump : PowerHighJump
{
}

ACTOR RuneSpeed25 : PowerSpeed
{
	Speed 1.25
}
[/spoiler]
Not very helpful to look through. However, Zandronum.pk3 does have a hefty amount of actual code, so I'll poke through that.

Re: Zandronum games' source?

Posted: Sun Mar 26, 2017 4:14 pm
by Hypnotoad
You can find more info about the Powerups classes here: https://zdoom.org/wiki/Classes:Powerup