railguns

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

railguns

Postby Zell » Tue Aug 05, 2003 12:32 pm

how do add the railgun to zdoom? lol i cant figure it out :(
User avatar
Zell
:O ALIVE[again]
 
Joined: 24 Jul 2003
Location: IN A GODDAMN BOX[In Erie.]

Postby Biff » Tue Aug 05, 2003 12:37 pm

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
User avatar
Biff
Caleb is back for a visit
 
Joined: 16 Jul 2003
Location: Monrovia, CA, USA

Postby Zell » Tue Aug 05, 2003 12:58 pm

is there anything else i need?
User avatar
Zell
:O ALIVE[again]
 
Joined: 24 Jul 2003
Location: IN A GODDAMN BOX[In Erie.]

Postby HotWax » Tue Aug 05, 2003 3:35 pm

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.
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Cyb » Tue Aug 05, 2003 5:54 pm

HotWax wrote:You can also give enemies railguns by using the appropriate pointers. (No, I don't know them offhand)


MonsterRail
Cyb
 
Joined: 15 Jul 2003

Postby Xaser » Tue Aug 05, 2003 8:27 pm

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...)
User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Postby Assmaster » Wed Aug 06, 2003 2:02 am

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?
Assmaster
45 character limit
 
Joined: 06 Aug 2003
Location: New York City

Postby BBG » Wed Aug 06, 2003 4:52 am

You guys wanna see a cool railgun? Look HERE.
User avatar
BBG
 
Joined: 16 Jul 2003

Postby HotWax » Wed Aug 06, 2003 9:46 am

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.
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Cyb » Wed Aug 06, 2003 9:54 am

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...
Cyb
 
Joined: 15 Jul 2003

Postby HotWax » Wed Aug 06, 2003 9:59 am

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.
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Mighty Duck X-treme » Wed Aug 06, 2003 9:32 pm

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
Mighty Duck X-treme
Why am I always talking to myself?
 
Joined: 15 Jul 2003
Location: Chesterfield, Missouri

Postby Zell » Thu Aug 07, 2003 5:56 am

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...
User avatar
Zell
:O ALIVE[again]
 
Joined: 24 Jul 2003
Location: IN A GODDAMN BOX[In Erie.]

Postby BBG » Thu Aug 07, 2003 6:36 am

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.
User avatar
BBG
 
Joined: 16 Jul 2003

Postby Zell » Thu Aug 07, 2003 8:09 am

:shock: holy crap! lol had no clue they were real :? :o
User avatar
Zell
:O ALIVE[again]
 
Joined: 24 Jul 2003
Location: IN A GODDAMN BOX[In Erie.]

Next

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests