[ACS] Doors that open when shot with a specific projectile

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: [ACS] Doors that open when shot with a specific projecti

Post by RockstarRaccoon »

I'm about to post it on GitHub, along with the updated Dreadnought rewriting. I'll send it to you then. When I get back to the computer, I'll post the code.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: [ACS] Doors that open when shot with a specific projecti

Post by RockstarRaccoon »

Sorry, forgot to post this until now. This is the code with the weird results with projectiles from Metroid Dreadnought weapons.
script "PrintProjectile" (void) {
Print(s:"Hit: ");
Print(s:GetActorClass(0));
}
User avatar
jpalomo
Posts: 771
Joined: Mon May 17, 2010 9:45 am

Re: [ACS] Doors that open when shot with a specific projecti

Post by jpalomo »

Print will only display for the activator. In this case, the projectile. Use printbold instead.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: [ACS] Doors that open when shot with a specific projecti

Post by RockstarRaccoon »

jpalomo wrote:Print will only display for the activator. In this case, the projectile.
... I'll test this... But why does it display for me half the time?
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: [ACS] Doors that open when shot with a specific projecti

Post by RockstarRaccoon »

Ok, I've got Spazers and missiles working for it... Still gotta do the Ice Beam, but that's something I've yet to delve into...
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: [ACS] Doors that open when shot with a specific projecti

Post by RockstarRaccoon »

MISSION COMPLETE.
Will post code and such for replication after fully implementing it in Metroid Doom. Also, expect Metroid Doom's Alpha release this weekend.
Locked

Return to “Editing (Archive)”