Duke4.net Forums: Projectile ejection sprite coordinates - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Projectile ejection sprite coordinates

#1

Which part of the code controls from which coordinates of the enemy sprite the projectile ejects? I want to fix firefly duck shoot
0

User is offline   Danukem 

  • Duke Plus Developer

#2

There's no part of the code controlling that which is directly accessible in the scripting language. I haven't played world tour but from your description it sounds like the shot is coming out too high because it uses the same actor ducking as standing. You could either cactor to a shorter sprite for the shot or lower the z coord during the shot.
0

#3

It should be as easy as changing to the duck shooting trooper actor, but I can't identify were to do that. Thanks for this info anyways :)
0

#4

Saw this:

        else ifai AITROOPDUCKING {
            // debug 9
            sizeto FF_SIZEX FF_SIZEY
            state troopduckstate


It points directly to Assault Trooper state, so I don't know why the hell it doesn't work the same.

This post has been edited by NukeDukem89: 22 March 2024 - 06:45 AM

0

User is offline   Danukem 

  • Duke Plus Developer

#5

How high a projectile spawns is partially determined by the height of the actor who is firing. You could change the yrepeat or actor tile number in the line of code immediately preceding the line that makes it shoot, then change it right back in the next line of code.
0

#6

Finally opted to disable ducking behavior, as if you think about it, it doesn't fit with the overall enemy design.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options