Demon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > EDGE help!!
 
Author
All times are GMT. The time now is 11:29. Post New Thread    Post A Reply
Lobo
Forum Regular


Posts: 971
Registered: 12-01


I have a little problem with DDF and I was wondering if anyone out there can help me out.

I want to have two weapons which have the exact same sprites but have two different attacks. Weapon_A shoots bullets and Weapon_B shots rockets.
The problem is that I want to change weapons WITHOUT seeing the RAISE and LOWER animation you get when you change from one to the other. The idea is to trick the user into thinking that it's the same weapon.

Originally, I tried to use a single weapon with a secondary attack but that doesn't work because the AMMOTYPEs are different: this means that when bullets run out I lose the weapon, even though the ammo for the secondary attack isn't empty.

It's kinda hard to explain but I hope you catch the drift :)

__________________
Official EDGE Forum.

Robotech: FirstGen TC / Edge Shell Launcher(ESL) Home page.

Old Post 08-26-03 13:11 #
Lobo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
CacodemonLeader
Powerslave Fanatic


Posts: 369
Registered: 06-01


You can set the weapon up and down frames to 0 to make them switch really fast, but the problem is that they go all random-like, so you'll probably have to tap on the button quickly to switch.

I still have yet to get it to switch and not switch to something else quick as of now..

Old Post 08-26-03 14:36 #
CacodemonLeader is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Tobester
I die a lot.


Posts: 1197
Registered: 02-01


SEC_AMMOTYPE
[special]
Like AMMOTYPE but for the secondary attack.

copied straight from the ddf docs

Old Post 08-26-03 17:50 #
Tobester is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Naked Snake
HAHA I AM A FAG AND I CAN'T CHANGE THIS TITLE ANYMORE


Posts: 11558
Registered: 05-01


You can also have sec_reload and stuff, so you can make the secondary attack reload after, say, 3 shots.

__________________
DOOMWORLD All your favorite ports and map editors
DooM DM!!
3057 reasons to keep on dooming

Old Post 08-26-03 18:00 #
Naked Snake is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Lobo
Forum Regular


Posts: 971
Registered: 12-01


Yeah, I know all that stuff about the secondary attack but that doesn't answer my question. I already said I tried to have a primary attack(AMMOTYPE bullets) and a seconadry attack(rockets) but the problem is that as soon as you run out of either type of ammo you lose the weapon.

Any other suggestions?

__________________
Official EDGE Forum.

Robotech: FirstGen TC / Edge Shell Launcher(ESL) Home page.

Old Post 08-26-03 18:20 #
Lobo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Lobo
Forum Regular


Posts: 971
Registered: 12-01


Don't worry folks I got it! Thanks for your suggestions.

Here's the code:

[M16]
AMMOTYPE=BULLETS;
AMMOPERSHOT=1;
AUTOMATIC=TRUE;
BINDKEY=5;
PRIORITY=6;
KICK=0.04;
ATTACK=M16_BURST;
SEC_AMMOTYPE=ROCKETS;
SEC_AMMOPERSHOT=1;
SECOND_ATTACK=PLAYER_MISSILE;
SEC_AUTOMATIC=TRUE;
SOUND1=M16;

STATES(UP)=M16G:A:1:NORMAL:RAISE;

STATES(DOWN)=M16G:A:1:NORMAL:LOWER;

STATES(READY)=M16G:A:1:NORMAL:READY;

STATES(ATTACK)=M16G:A:1:BRIGHT:SHOOT,
M16G:A:1:BRIGHT:FLASH,
M16G:A:1:BRIGHT:EJECT(M16_SHELL_SPAWN),
M16G:A:1:BRIGHT:REFIRE;

STATES(FLASH)=M16G:B:2:BRIGHT:LIGHT2,
M16G:C:2:BRIGHT:LIGHT1,
M16G:A:1:BRIGHT:LIGHT0,
M16G:A:1:BRIGHT:LIGHT0,#REMOVE;

STATES(SECATTACK)=203G:A:8:BRIGHT:SEC_FLASH,
203F:B:3:BRIGHT:SEC_SHOOT,
203F:C:3:BRIGHT:NOTHING,
203F:D:3:NORMAL:NOTHING,
203G:A:0:NORMAL:REFIRE;

STATES(SECFLASH)=NULL:A:3:BRIGHT:LIGHT1,
NULL:A:2:BRIGHT:LIGHT2,
NULL:A:0:NORMAL:LIGHT0,#REMOVE;

__________________
Official EDGE Forum.

Robotech: FirstGen TC / Edge Shell Launcher(ESL) Home page.

Old Post 08-26-03 18:44 #
Lobo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Tobester
I die a lot.


Posts: 1197
Registered: 02-01


You should've just grabbed covert ops, it has similar (if not exact) ddf.

Old Post 08-26-03 19:08 #
Tobester is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Lobo
Forum Regular


Posts: 971
Registered: 12-01


That's where I got the above code from Tobester:)

It's still not perfect because now I have the opposite problem: when I run out of the primary ammo I lose the weapon, even though I've got secondary ammo!!

The only solution I can come up with is to use infinite ammo for the primary attack... :(

__________________
Official EDGE Forum.

Robotech: FirstGen TC / Edge Shell Launcher(ESL) Home page.

Old Post 08-26-03 22:08 #
Lobo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 11:29. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > EDGE help!!

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory