Flamethrower! (new ammo for WT) "Help for adding"
#1 Posted 23 October 2018 - 08:21 AM
All I have to do for the WT is to add the BOSS5, the Firefly and of course, the flamethrower.
I had already posted a thread on adding new weapons, but in the wrong section. This time it will be the right one.
I have integrated the lines of codes of this weapon into my files, and all that is wrong is that the weapon does not appear on the screen.
I already have a lot of knowledge in code, although I still have a long way to go. I would like to be able to finally integrate a new weapon and that is why I solicit again the help of the community.
Thank you very much.
This post has been edited by leninjableu: 23 October 2018 - 08:28 AM
#2 Posted 23 October 2018 - 10:45 AM
https://forums.duke4...bility-stopgap/
#3 Posted 23 October 2018 - 10:52 AM
#4 Posted 11 December 2018 - 01:05 PM
I managed to display the weapon on the screen and I would like to have a display explanation.
How can one add with the weapon, the small animation flame ?
Here is the beginning of the code I'm building. This is the still image of the still weapon on the screen:
state flamethrower_display switch weaponcount case 0 case 1 setvar digz 65536 setvar digx 210 setvar digy 261 setvar picnum 5138 setvar orientation 0 state initweapondisplay rotatesprite digx digy digz angvar picnum shade pal orientation 0 0 xdim ydim break
I would like to add with this, the little flame but I do not know how.
Thanks
#5 Posted 11 December 2018 - 01:24 PM
#6 Posted 11 December 2018 - 04:20 PM
The complete code is in the WGR2 TC, with the "little flame", weapon animation etc.
#7 Posted 11 December 2018 - 04:40 PM
#8 Posted 11 December 2018 - 04:56 PM
Firefly_Trooper, on 11 December 2018 - 04:40 PM, said:
The code you posted above looks like it was from WGR2, which was made several years before WT. It has nothing to do with WT, although I suppose someone could have used it as a base for displaying the WT flamethrower.
#9 Posted 11 December 2018 - 04:59 PM
I also did not know TC "WGR2"
#10 Posted 11 December 2018 - 05:09 PM
Last thing. When I code the flamethrower with a lot of patience, I will post on my thread the problems encountered.
This post has been edited by Firefly_Trooper: 11 December 2018 - 05:21 PM
#11 Posted 11 December 2018 - 05:23 PM
Firefly_Trooper, on 11 December 2018 - 04:59 PM, said:
I also did not know TC "WGR2"
It's fine. My code has been whored around all over the place. In fact there are bits of it which can be traced back to other people as well. That section does nothing significant, it just displays a tile. People at Spanish forums can copy/paste code as well as anyone
#12 Posted 12 December 2018 - 04:39 AM
Trooper Dan, on 11 December 2018 - 05:23 PM, said:
Yes, I'll be inspired to redo this famous flamethrower. This is the part "defineprojectile" that will be important.
#14 Posted 12 December 2018 - 08:19 AM
I will need a lot of patience and courage to succeed in coding a first weapon.
#15 Posted 14 December 2018 - 09:15 AM
This post has been edited by Firefly_Trooper: 14 December 2018 - 09:16 AM
#16 Posted 15 February 2019 - 09:47 AM
The only thing that blocks me to continue is to have the correct shooting animation when I shoot the projectiles.
This post has been edited by Firefly_Trooper: 15 February 2019 - 09:50 AM
#17 Posted 15 February 2019 - 09:53 AM
#18 Posted 15 February 2019 - 10:07 AM
Mark, on 15 February 2019 - 09:53 AM, said:
I think I would make a great pack, with textures, cons and def files, and sounds. I could also just send the files needed for someone here to benefit.
The better it will be a super pack, since all added extensions are included in one and the same game.
This post has been edited by Firefly_Trooper: 15 February 2019 - 10:09 AM
#20 Posted 15 February 2019 - 10:12 AM
#21 Posted 15 February 2019 - 10:14 AM
#22 Posted 15 February 2019 - 10:19 AM
Duke Nukem 3D v0.99 Beta
Duke: Caribbean
Duke: Nuclear Winter
Duke: It out in D.C.
Duke: Xtreme
Total Meltdown (PSX)
Penthouse Paradise
BDP - The Gate
Duke 64
20th Anniversary World Tour
Duke Nukem Advance
Maybe I'll add this more:
LameDuke
Duke 3D Game.com
Total Meltdown (Sierra Extension)
This post has been edited by Firefly_Trooper: 15 February 2019 - 10:21 AM
#23 Posted 16 February 2019 - 09:34 AM
I have not even taken the third step, that I already have problems that I can not understand.
First step, display the weapon on the screen ? OKAY !
Second step, animation of the weapon when it shoots ? FUCK! I can not figure out what to add or change, so the animation runs smoothly.
Third step, FIREBALL projectile? IMPOSSIBLE to know precisely, the exact coordinates of the projectile, as they are presented in WT.
And of course to finish, the useractor "LAVAPOOL" is not correctly coded.
I found it easier to code monsters, rather than a weapon
I will be posting some code and a video soon to explain.
This post has been edited by Firefly_Trooper: 16 February 2019 - 09:38 AM
#24 Posted 16 February 2019 - 09:36 AM
#25 Posted 16 February 2019 - 09:41 AM
Ninety-Six, on 16 February 2019 - 09:36 AM, said:
It reassures me !
It would be easier to code the FIREFLY and the BOSS5 instead. Frankly, I did not think it would be so boring.
#26 Posted 16 February 2019 - 10:20 AM
The coding of the hud, the collection of the weapon, ammunition and the change of alternative sub weapon with EVENT_KEY look less complicated
This post has been edited by Firefly_Trooper: 16 February 2019 - 10:21 AM
#27 Posted 16 February 2019 - 10:26 AM
What I did not manage to do was use of a second RESPAWN for the impact of the projectile on the wall and the drag of the launched projectile (smaller Fireball).
This post has been edited by Firefly_Trooper: 16 February 2019 - 10:31 AM
#28 Posted 16 February 2019 - 04:55 PM
I can not fix this fucking animation on the screen.
I can not properly define this fucking projectile.
I can not do a proper HUD, this fucking weapon and ammo.
And to end my spirits, there is an EVENT_LOOKUP who is there ... without being there !!! It is used to make a secondary projectile fire, but I can not keep the code, without telling him to create a secondary fire. AS I DO NOT WANT!... and a gamevar that refuses to work. Whore !
Really, it depresses me and it destabilizes me
This post has been edited by Firefly_Trooper: 16 February 2019 - 04:57 PM
#30 Posted 17 February 2019 - 04:43 AM
Mark, on 16 February 2019 - 07:01 PM, said:
I do not have a dog !