Page 1 of 3

railguns

PostPosted: Tue Aug 05, 2003 12:32 pm
by Zell
how do add the railgun to zdoom? lol i cant figure it out :(

PostPosted: Tue Aug 05, 2003 12:37 pm
by Biff
zdoom -bex railgun.bex

The contents of the railgun.bex file are:


Patch File for DeHackEd v3.0

# Note: Use the pound sign ('#') to start comment lines.

Doom version = 19
Patch format = 6

# Don't even try editing this in DeHackEd, since it's mostly
# extensions that DeHackEd knows nothing about.

[CODEPTR]
Frame 77 = A_FireRailgun
Frame 78 = NULL

# S_PLASMA1
Frame 77
Sprite subnumber = 32768
Duration = 3
Next frame = 78

# S_PLASMA2
Frame 78
Sprite subnumber = 1
Duration = 50
Next frame = 74

Weapon 5 (Plasma Gun, now a rail gun)
Decal = RailScorch

PostPosted: Tue Aug 05, 2003 12:58 pm
by Zell
is there anything else i need?

PostPosted: Tue Aug 05, 2003 3:35 pm
by HotWax
That patch replaces the Plasma Rifle with the railgun. Just load it up and switch to weapon 6 to fire it.

If you want to use it in your own project, use the railgun.bex file as a reference to adding it in. You'll have to replace one of the weapons, though it doesn't have to be the plasma. You can also give enemies railguns by using the appropriate pointers. (No, I don't know them offhand) If you do that, you can set the railgun damage for each monster by setting the monster's missile damage field (normally unused on an enemy) to the desired value. AFAIK, the player's RG damage is hard coded and can't be changed.

PostPosted: Tue Aug 05, 2003 5:54 pm
by Cyb
HotWax wrote:You can also give enemies railguns by using the appropriate pointers. (No, I don't know them offhand)


MonsterRail

PostPosted: Tue Aug 05, 2003 8:27 pm
by Xaser
HotWax wrote:AFAIK, the player's RG damage is hard coded and can't be changed.


Man, I'd really like to be able to change that in the next version of Zdoom. It could lead to some interesting results, such as a superfast machinegun firing weak railgun shots. (Randy, hint, hint...)

PostPosted: Wed Aug 06, 2003 2:02 am
by Assmaster
Xaser wrote:It could lead to some interesting results, such as a superfast machinegun firing weak railgun shots. (Randy, hint, hint...)
I got that effect by giving monsterrail to odd things like barrels. The shots barely did anydamage either. So maybe someone could muck around with that?

PostPosted: Wed Aug 06, 2003 4:52 am
by BBG
You guys wanna see a cool railgun? Look HERE.

PostPosted: Wed Aug 06, 2003 9:46 am
by HotWax
Assmaster wrote:I got that effect by giving monsterrail to odd things like barrels. The shots barely did anydamage either. So maybe someone could muck around with that?


Reread my post, Ass. .... erm

... I can't call you that... hrm ... errr... Master?... okay I'm not calling you Master. Hmmm....

Reread my post, Smaster. Just replace "enemies" and "monsters" with "non-player Things." There are different railgun pointers for the player and anything AI-driven (which is everything else). The one for the player does fixed damage, while the others do the amount of damage specified in the Thing's "missile damage" field. Since barrels (like most non-projectiles) have 0 missile damage by default, they do 0 damage when you give them a rail. Change the missile damage value and they'll start doing damage.

PostPosted: Wed Aug 06, 2003 9:54 am
by Cyb
ACTUALLY, now that zdoom can use monster code pointers with the player, you might be able to do a variable damage railgun if you assign the MonsterRail codeptr to the player and give the player a missile damage. mind you I haven't actually tried this (nor have I ever used a monster codeptr on the player's weapons) but it's possible...

PostPosted: Wed Aug 06, 2003 9:59 am
by HotWax
Cyb wrote:ACTUALLY, now that zdoom can use monster code pointers with the player, you might be able to do a variable damage railgun if you assign the MonsterRail codeptr to the player and give the player a missile damage. mind you I haven't actually tried this (nor have I ever used a monster codeptr on the player's weapons) but it's possible...


That would surely unbalance the ... uhmm.. balance... of the space-time continuum and throw us all into an infinite-regression-techono-babble time loop.

PostPosted: Wed Aug 06, 2003 9:32 pm
by Mighty Duck X-treme
BBG wrote:You guys wanna see a cool railgun? Look *No*.


You're an idiot. That's NOT a railgun.

THAT'S a railgun:

Image

PostPosted: Thu Aug 07, 2003 5:56 am
by Zell
heh dont make me go get a screenshot of Q3Arenas railgun ;)

But, anyway, whats all this stuff about monster pointers and such? how do u use them, etc...

PostPosted: Thu Aug 07, 2003 6:36 am
by BBG
Mighty Duck X-treme wrote:
BBG wrote:You guys wanna see a cool railgun? Look *No*.


You're an idiot. That's NOT a railgun.

THAT'S a railgun:

Image


Actually, you're an idiot. THIS is a REAL Rail Gun.

PostPosted: Thu Aug 07, 2003 8:09 am
by Zell
:shock: holy crap! lol had no clue they were real :? :o