Ouchface
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 > Weapon mod questions!
 
Author
All times are GMT. The time now is 05:43. Post New Thread    Post A Reply
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Hello again! I have a couple of ZDoom decorate questions:

1) When editing the 'Fist' weapon I would like to display a different animation when it hits something (a wall or an enemy) and a different one when I don't hit anything. Is this possible?

2) I understand the basic concept of 'Fire' and 'AltFire'. Can a weapon have, maybe 3 or more alternate fire states?

Thank u again doomguys :)

Old Post 10-21-12 23:57 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Cacowad
Member


Posts: 281
Registered: 07-12


1) the only thing i can remenber that do a similar thing is the hexen's figther punch http://zdoom.org/wiki/Classes:FWeapFist

2)i really don't know... you can surely have a weapon that randomize it's attacks states with an A_jump () statement, but i think that you are bound to a maximum 2 main fire states.

Old Post 10-22-12 17:36 #
Cacowad is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Thank u for your response Cacowad!

Doing a super duper research I found two functions called
A_JumpIfTargetInsideMeleeRange and A_JumpIfTargetOutsideMeleeRange (they're found here: http://zdoom.org/wiki/Action_functions )

Both require some version of ZDoom (I dont know if I have it, havent had time to) but it seems to me they would work.

About the multi fire attacks I also found this article:

"Weapons and custom inventory items define a few more states to define their animations.
Note that you can also define your own states that can be referred to using A_Jump or other jump instructions."

So, I think I can create multiple states and use the A_Jump function to go to any of them.

Link: http://zdoom.org/wiki/Actor_states


I don't know if any of this would work but I'll give it a try. I'll post my findings soon.

Old Post 10-22-12 18:03 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Ok, now I've got some announcements to make :) : ->

I got ZDoom r3897. So everything was tested using this version.
I also used Slade 3 and Doom Builder 2.


1) The function A_A_JumpIfTargetInsideMeleeRange does work. It detects enemies but not walls or other decoration objects. (It will return true even if the enemy is dead).

2) You can create different States and use them by using A_Jump functions (I've only tried this one for weapons, not sure about monsters or other objects but it would be likely to work).

So yeah. Mmm Mmm!

I'm sure I'll be asking questions again pretty soon :D

Old Post 10-22-12 23:23 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 05:43. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Weapon mod questions!

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.