Page 1 of 1
Unexpected '{' in definition of Doubletap SOLVED
Posted: Thu Jan 09, 2014 7:35 pm
by Fabysk
So I want to implement a powerup which increases the rate of fire of the players weapon for P115,
but I get this error
Code: Select all
ACTOR Doubletap : PowerupGiver
{
Game Doom
Inventory.MaxAmount 1
powerup.type PowerDoubleFiringSpeed
+INVENTORY.AUTOACTIVATE
+COUNTITEM
{
Spawn:
STIM A -1
Stop
}
}
RE: Unexpected '{' in definition of Doubletap
Posted: Thu Jan 09, 2014 7:40 pm
by Ijon Tichy
you forgot "States"
also powerdoublefiringspeed isn't a thing in 1.2
you'd probably be better off coding the increased fire rate yourself
RE: Unexpected '{' in definition of Doubletap
Posted: Thu Jan 09, 2014 7:46 pm
by Fabysk
Ijon Tichy wrote:
you forgot "States"
I swear, I always forget about states
Ijon Tichy wrote:
also powerdoublefiringspeed isn't a thing in 1.2
you'd probably be better off coding the increased fire rate yourself
Alright then, I'll try to code that. I am probably gonna need some help since this is my fist time actually coding something like this (still a beginner in DECORATE).
RE: Unexpected '{' in definition of Doubletap
Posted: Thu Jan 09, 2014 9:01 pm
by Ijon Tichy
well, are you willing to wait a little while for z& 2.0 to release? if so, then it's a non-issue
if not, then basically all you'd need to do is, in the weapons in your mod, have a A_JumpIfInventory check for whatever you want to use to double firing speed, and jump to a fire state with the tic rates halved
it allows greater flexibility, but if you don't care about that, I'd advise just waiting
edit: one post, "you might want to code it yourself"; next post, "eh, just wait"
aren't I just fucking consistent
RE: Unexpected '{' in definition of Doubletap
Posted: Fri Jan 10, 2014 2:02 am
by Fabysk
Ijon Tichy wrote:
well, are you willing to wait a little while for z& 2.0 to release?
For sure, I can wait. Supposing it will be available in the next update, but I shouldn't get my hopes up...
RE: Unexpected '{' in definition of Doubletap
Posted: Fri Jan 10, 2014 3:22 am
by Ijon Tichy
it's already been added to 2.0, according to
this, so there ya go
RE: Unexpected '{' in definition of Doubletap
Posted: Fri Jan 10, 2014 5:46 am
by Fabysk
Oh, I can wait for that. Might as well consider this thread as "solved" then