How might one go about always showing the "mighty foot" weapon if it were replaced with say, a sword and you wanted it to always be visible when the player is walking just as the pistol and other weapons are? Bobbing as the player walks.
Any help is greatly appreciated.
Thank you.
Page 1 of 1
Always display "Mighty Foot"
#1 Posted 21 February 2021 - 11:02 PM
#2 Posted 22 February 2021 - 02:55 AM
In either EVENT_DRAWWEAPON or EVENT_DISPLAYWEAPON, use rotatesprite or some other screen drawing command to draw the frame of the sword you want displayed. A combination of the eduke32 wiki, and released mods such as AMC TC and Alien Armageddon contain instructions and examples, respectively.
#3 Posted 24 February 2021 - 11:15 AM
Danukem, on 22 February 2021 - 02:55 AM, said:
In either EVENT_DRAWWEAPON or EVENT_DISPLAYWEAPON, use rotatesprite or some other screen drawing command to draw the frame of the sword you want displayed. A combination of the eduke32 wiki, and released mods such as AMC TC and Alien Armageddon contain instructions and examples, respectively.
I tinkered around with it for a few hours, not having any luck. Any further help would be greatly appreciated. Thanks!
#4 Posted 13 March 2021 - 07:22 AM
JesseP, on 24 February 2021 - 11:15 AM, said:
I tinkered around with it for a few hours, not having any luck. Any further help would be greatly appreciated. Thanks!
Hey man, sorry for the late reply. I made a con file and a gamevar file adding a visible weapon for the foot. you just need to change the sprite to whatever sprite you want to use. I added a crappy little axe I made quickly (which is included in the zip) it uses 4960 as it's idle frame, so to change the sprite number you will just need to go into the mightyfoot.con file and change setvar picnum 4963 to whatever sprite number you want. You will also need to do the same for the animation frames you use in the same file. Lastly you just need to go into game.con and add "include GAMEVARS.CON" and "include MIGHTYFOOT.CON" at the top. You will probably want to change the offsets as well since I moved them around to make mine work.
Attached File(s)
-
mightyfoot.zip (318.6K)
Number of downloads: 196
This post has been edited by 11bush: 13 March 2021 - 07:23 AM
#5 Posted 13 March 2021 - 07:28 AM
@11bush, Thank you so much!!
11bush, on 13 March 2021 - 07:22 AM, said:
Hey man, sorry for the late reply. I made a con file and a gamevar file adding a visible weapon for the foot. you just need to change the sprite to whatever sprite you want to use. I added a crappy little axe I made quickly (which is included in the zip) it uses 4960 as it's idle frame, so to change the sprite number you will just need to go into the mightyfoot.con file and change setvar picnum 4963 to whatever sprite number you want. You will also need to do the same for the animation frames you use in the same file. Lastly you just need to go into game.con and add "include GAMEVARS.CON" and "include MIGHTYFOOT.CON" at the top. You will probably want to change the offsets as well since I moved them around to make mine work.
#6 Posted 13 March 2021 - 08:00 AM
JesseP, on 13 March 2021 - 07:28 AM, said:
@11bush, Thank you so much!!
No problem man, let me know if it works for you.
#7 Posted 13 March 2021 - 08:03 AM
Will do, I'll be able to tinker around with it Monday. Thanks again!
#8 Posted 16 March 2021 - 12:28 PM
@11bush, works like a charm! That would be great for the Plunder & Pillage sword. Thank you so much, this is awesome.
#9 Posted 18 March 2021 - 08:58 AM
JesseP, on 16 March 2021 - 12:28 PM, said:
@11bush, works like a charm! That would be great for the Plunder & Pillage sword. Thank you so much, this is awesome.
No worries!
Share this topic:
Page 1 of 1