• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

Lat' does bullshit~

Status
Not open for further replies.

Lat'

Absolute territory where
Kart Krew™️
Remember that "a little question" thread?
Here's the result of my experiment with it.

1: An HP bar (finally something interresting "from me", because I'd say I got some help with it ^^')
it's easy to understand: Rings = HP. Hit = -10 HP. If hit and less than 10 HP = dead.



2: Tac- I mean a "spin" that drains rings, and that works for players that don't have CA2_SPIN. (As simple as giving CA2_SPIN for a tic, doing a spin, and getting back to CA2_NONE)


3: Without forgetting to introduce my lovely DUMBPLACEHOLDER. Everything is in its name. It has sprites ripped straight from the internet to remind me what they're supposed to be, so I recorded in firstperson because they are ugly. Also they're going to stay for a VERY LONG (forever in fact) while. (Everyone who saw my catastrophes on the post/art pics thread will know why :P)
 
Last edited:
Wow that's great this could make SRB2's Match more like Team Fortress 2 just add hats and it's done! XD
But what actually is it?
Okay, stupid question and jokes aside but this just amazing!
 
TF2? 50 HPs?
But what IS THIS now? Well you can find out by finding from where the HP graphics were actually taken from, or if I decide to show you those ugly sprites, or you can even look at my ... oops almost told it ^^
 
That health bar looks very similar to the pokemon mystery dungeon health bars
maxresdefault.jpg
Never will forget that look of those games. Great games indeed.

This means if you ever do release it, it could go well with a sprite rip I made some time ago
it_s_all_about_meee__gif__by_ordomandalore-d89tzeg.gif
 
Last edited:
Shit I got spotted.Anyway I'm affraid that original PMD sprites won't fit SRB2's camera. I'd have to make the camera with a top down angle, I'm affraid that this would rip the concept of the upcoming TopDown mod, and I don't have the required lua skills to even reproduce PMD's movement mechanics.


However I have a little idea of what I might turn all of this into, and I'll also reveal the identity of DUMBPLACEHOLDER soon.

EDIT: Also that Pikachu X)
 
I told ya I really sucked with Lua, how could I even set up an hunger system (even if I'd like to :< ), but the HP bar now supports "overheal", even if it lasts very short even with 500 HPs (I spammed a move too so...) it will endure any hit without you to lose any real HP. Oh and also the Moo- I mean a nuke that kills nasty robots.
PhysicalGleefulCheetah.gif


Yup, the "spin" and that "nuke" both drain HPs (That's strange huh.)
Sure, I'm probably not gonna let the jump happen, or if it's here, it will probably not damage enemies, to make those two moves have a reason to exist.

Also not gargoyle-based nuke :P
 
Would this work as a hunger system?
addHook("MobjSpawn", function(player)
player.hunger = 10
player.hungertimer = 0
player.healthtimer = 0
player.lasthealth = 0
end, MT_PLAYER)

addHook("MobjThinker", function(player)
if (player.hunger > 0)
and (player.hungertimer >= TICRATE)
player.hunger = $ - 1
player.hungertimer = 0
end
player.hungertimer = $ + 1

if (player.hunger <= 0)
and (player.health > 1)
and (player.healthtimer >= TICRATE)
player.health = $ - 1
player.healthtimer = 0
end
player.healthtimer = $ + 1
end, MT_PLAYER)

addHook("ThinkFrame", function()
for player in players.iterate do
player.health = player.mo.health --update HUD

if (player.mo.health > player.mo.lasthealth) --test method to gain hunger
player.mo.hunger = $ + player.mo.health - player.mo.lasthealth
end
player.mo.lasthealth = player.mo.health
end
end)
Maybe use the TouchSpecial hook to get hunger when touching a custom object?
 
Last edited:
Well, I guess this hunger script will go surprisingly well with what I intended to do.
Sweet~
CookedLeftHoopoe.gif


Yup, an Insta-Regen and an Invincibility candy. They can totally interact with Hunger actually :P

EDIT: Also I should probably add a HUD for the hunger because it's confusing to start losing HPs for no reasons X)
EDIT2: With the way that the test method to gain hunger works, the InstaRegen candy is OP.

---------- Post added at 01:15 PM ---------- Previous post was at 12:18 PM ----------

And sorry for double post, but before I have to go, I added a little HUNGER counter
(ikr, it's really ugly, buy I will improve it this evening because I have to go)

DefiantAllBlacknorwegianelkhound.gif


(See, I told ya instaregen was op)
 
Last edited:
Wow, this looks interesting! I made a health script like this around a week or two ago for testing, and even though mine has fancy graphics and stuff, I actually think yours looks better. Perhaps because yours isn't as huge as mine and actually fits SRB2's style a lot more.

Do you plan to include leveling up or anything of the sort? If so, you could use the player's score for EXP.

Another thing, too: I think you might be able to make the slash beside the health bar red (to match TheDoctor's screenshot) by replacing
Code:
player.health.."/50"
with
Code:
player.health.."\x85/\x8050"
or something similar. To put it simply, you'd have to add a red color code (\x85) before the slash and a white one (\x80) after it. I can't say for sure as I haven't done that, but I'm fairly certain it'll work.
 
Last edited:
I'm not planning any level up system, but I can eventually start to work on one if I have some time.
Also I tried what you told me to do with the string color, it works but for some reasons, there's a "P" coming out of nowhere. ( HP xx / P 50 )

Anyway, as semi.colon said that I needed objects to really interact with Hunger...

BlankCourteousHammerheadshark.gif


That apple is sure filling, but I didn't remember I told it to fill more than 20 hunger points (I am so pro at Lua) But at least it works...

EDIT: Also as for now, moves are draining Hunger instead of HPs, it makes much more sense.
EDIT2: Concerning the red "/" I can eventually just insert it as a regular HUD, it'll make the same thing.
 
Last edited:
Watching your work makes me think I will never be so experienced in Lua :v I always get guided by other people's codes so I can get what I want to be done.

By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?
 
By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?

It's "Volcano". You know, like Red Volcano Zone? :P

On-topic: So, is this supposed to be a Minecraft mod for SRB2?
 
By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?

...uhh... according to Bing Translator, "volcán" is "volcano" in English. I should probably know this by now, as I'm in a Spanish class myself. I only diverged from the topic to help you in that case, so... don't ask off-topic questions again, I guess?

EDIT: ninja'd once more
 
Well Virtual, do you even think I wrote all this shit? I just took everything from existing WADs and modified to suit my needs.The HUD is a modified version of the buffgauge (unlikely), the way used to fill hunger was ripped straight from Quickman, as the one used to take damage too, without forgetting the Hunger code someone made for me without I even ask to.


Concerning your random question...
1: WTF is it doing there?
2: It's Volcano. (Volcan is French.)

---------- Post added at 09:44 PM ---------- Previous post was at 09:41 PM ----------

It's "Volcano". You know, like Red Volcano Zone? :P

On-topic: So, is this supposed to be a Minecraft mod for SRB2?

Double post srry.


DUMBPLACEHOLDER = Steve... with an HP bar... and Tackle? Weird.
 
Triple post, sorry again.
Anyway here is more food related content, yup, apples, a thin one, a big one and a golden one. I also added two others candies that fill different ammount of health... I guess I can start working on levels, now.

CanineLiquidChinchilla.gif


Another thing, if your hunger goes under 20, the message "Getting hungry..." prints into the console, "Getting dizzy from hunger..." prints if it goes below 10.

01000100011101010110110101100010010100000110110001100001011000110110010101101000011011110110110001100100011001010111001000100000011010010111001100100000010100110111100101101100011101100110010101101111011011100010110000100000011010010111010000100000011101110110000101110011001000000110111101100010011101100110100101101111011101010111001100100000011011000110111101101100001011100010000001000010011101010111010000100000011001000110111101101110001001110111010000100000011101000110010101101100011011000010000001101001011101000010000001101111011011100010000001110100011010000110010100100000011101000110100001110010011001010110000101100100001000000011101001001111
 
Last edited:
Keep in mind that the MB doesn't allow sprite rips. In the final product all of the sprite rips have to be changed.
 
We allow ripped sprites. What we don't allow are submissions (e.g. custom characters) that consist of nothing but ripped sprites.
 
Well I actually have some scripts around there, so it should be allowed if it comes down to submissions one day.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top