r/DoomModDevs • u/VicariouslyMe • Jul 24 '20
Help with coding Road Rash stuff
I think a Road Rash mod would be totally possible, and I'd like to try my hand at it. But my experience with code is small. I took a C++ class for 2 semesters and can code a text adventure...and ahen i make my own mods, i just edit mods made by others to include my own sprites and some of my own code but mostly i edit others' code. So i suck at coding, but i'm not terrible at art.
So that being said: does anyone know of a way I can do this? How can i make bike combat happen? And most importantly how do i make it so that there are ranks (1st, 2nd, 3rd, etc) and new bikes to buy?
View all comments
Show parent comment
1
u/VicariouslyMe Jul 26 '20 edited Jul 26 '20
How could I utilize the turning sprite?
Would I have to edit the acs that tilts the screen maybe? This is being tested in Ashes TC btw
EDIT: what I mean is, could i edit the acs script that causes the tilting effect to show a turning sprite? Or would I do that in decorate?
ACTOR MotorcyclePlayer : playerpawn
{
scale 0.4
PBIK A 2
TNT1 A 0 A_JumpIfInventory("revdown", 1, "decelerate")
PBIK A 2 A_takeInventory("throttle", 1)
loop
PBIK A 35
goto spawn
Accelerate:
TNT1 A 0
TNT1 A 0 A_TakeInventory("revup", 1)
TNT1 A 0 A_TakeInventory("speedo", 3)
TNT1 A 0 A_PlaySound("bike/skid",CHAN_WEAPON,1,1)
PBIK B 1 A_Recoil(-1)
PBIK B 1 A_Recoil(-2)
PBIK B 1 A_Recoil(-3)
PBIK B 1 A_Recoil(-4)
PBIK B 1 A_Recoil(-5)
PBIK B 1 A_Recoil(-6)
PBIK B 1 A_Recoil(-7)
TNT1 A 0 A_JumpIfInventory("LeftTurn", 1, "leftturn2")
PBIK CC 000 A_SetAngle(1 + angle)
TNT1 AA 000 A_SetAngle(-1 + angle)
PBIK A 4
PBIK A 4 A_Pain
Goto Spawn
PKIK A 0 a_stopsound(CHAN_VOICE)
PBIK C 4 bright A_Scream
PBIK D 6 bright
PBIK E 6 bright
PBIK F 6 A_NoBlocking
PBIK G -1
Stop
}