Original message
| Jayextee  Jxt@Misery.co.uk -
| ".bex beginner wants help" , posted Sun 25 Mar 12:31  
Topic says it all. Is there any way to get projectiles to originate off-center of the screen.
I have used the Quake2 weapon sprites, and they're at the right, so I want rockets/railgun etc. To come from the weapon and not the screen middle.
Can this be done?
_______________________________________________________________ Visit the Up-And-Coming page (UAC) at http://www.geocities.com/jayextee
Let's go next game!
| | Replies:
|
| | Enjay Enjay001@hotmail.com | "Re(2):.bex beginner wants help" , posted Mon 26 Mar 11:17  
Sprites have to be offset as has already been said. You have to be careful how you do this, however. Getting it wrong makes the projectile look like it has missed its target when it hasn't, or the projectile explosion may not match the apparent point of impact of the projectile.
The Zdoom railgun, however does have a number of codepointers to make it work from left right or centre:
FireRailgun FireRailgunLeft FireRailgunRight
I have only used the centre one, but I assume the others work.
Meek
|
| Lazer  -@-.com
| "Re(1):.bex beginner wants help" , posted Sun 25 Mar 18:27  
I've seen it done... I think... Try looking at D2XGold, they use it on a weapon.
Current Projects: Underworld The Doom Down Under Website: www.devin-afshin.com/DDU/DDUMain.htm
|
| | Quasar  haleyjd@hotmail.com
| "Re(2):.bex beginner wants help" , posted Thu 29 Mar 15:09  
Yeah there's no reliable way to do this without editing the game's source code itself. Sounds like a good possible feature for Eternity though, FireLeft and FireRight codepointers with offset parameters would work wonderfully.
Quasar
Moderator of Team Eternity http://doomworld.com/eternity
|
|
|