Forums

hammer bar on anvil

Quick find code: 185-186-987-66291111

IM_Scott-Bot
Oct Member 2023

IM_Scott-Bot

Posts: 2 Bronze Posts by user Forum Profile RuneMetrics Profile
I think it would look cool and nice if whilst I'm making a rune platebody for example I would see the bar on the anvil changing shape with every hit of the hammer.
Every say 1/20th of the progress have a different model displayed on the anvil.

27-Nov-2023 20:23:25

IM_Scott-Bot
Oct Member 2023

IM_Scott-Bot

Posts: 2 Bronze Posts by user Forum Profile RuneMetrics Profile
NOT REALLY TBF DUE TO MOST OF THEM BEING THE SAME MODELS JUST DIFFERENT COLOURS. They have THE MODELS FOR THE COMPLETE ITEM AND IM ONLY REALLY TALKING about ARMOUR/WEAPONS.
Have like 5 stages during the smithing of the body/helm/sword aka 5 new models for the armour (boot/gloves can be left out tbf due to how fast they can be smithed) and then every armour hit it changes model. I think they could knock this out in a few hours for both artists and developers as most of the code is already there.
code could look something like(I'm a beginner programmer and not done it in over 5 years lol):

if (this.Smithing.progress = (1/5) { Smithing.CurrentItemSmithing.model = this.Smithing.ItemModel+=1;} reap reap reap reap;

and so on can be done in a loop also or if statements or im sure Jagex got some nice way of handling things like changing models on items on the fly :)

Ahh, I'm bored so yeah loop version lol:
int i;
for (i = 0; i <= 5; i++) {
double progress = static_cast<double>(i) / 5;
if (progress != 1) {
this->Smithing.GetCurrenttemModel += i;
}
this->Smithing.progress = progress;
}

29-Nov-2023 03:32:16 - Last edited on 29-Nov-2023 03:37:23 by IM_Scott-Bot

Kings Abbot

Kings Abbot

Posts: 10,747 Opal Posts by user Forum Profile RuneMetrics Profile
IM_Scott-Bot said :
NOT REALLY TBF DUE TO MOST OF THEM BEING THE SAME MODELS JUST DIFFERENT COLOURS. They have THE MODELS FOR THE COMPLETE ITEM AND IM ONLY REALLY TALKING about ARMOUR/WEAPONS.
Have like 5 stages during the smithing of the body/helm/sword aka 5 new models for the armour (boot/gloves can be left out tbf due to how fast they can be smithed) and then every armour hit it changes model. I think they could knock this out in a few hours for both artists and developers as most of the code is already there.
code could look something like(I'm a beginner programmer and not done it in over 5 years lol):

if (this.Smithing.progress = (1/5) { Smithing.CurrentItemSmithing.model = this.Smithing.ItemModel+=1;} reap reap reap reap;

and so on can be done in a loop also or if statements or im sure Jagex got some nice way of handling things like changing models on items on the fly :)

Ahh, I'm bored so yeah loop version lol:
int i;
for (i = 0; i <= 5; i++) {
double progress = static_cast<double>(i) / 5;
if (progress != 1) {
this->Smithing.GetCurrenttemModel += i;
}
this->Smithing.progress = progress;
}


In case you haven't bnoticed, since the M&S Rework every piece of armour and every weapon has a unique model. The category 'Smithing' on the Wiki lists 1628 pages. Making 5 new models for 1500 items, thats 4500 models made from scratch. That is not done in just a couple of hours...

Also, who says RS uses that type of code? With all the issues they had in the last years due to spaghetti code, I doubt it will be as easy as you claim.
Kings Eastwood in
THE GLOOP , THE BWIAN , and THE WIKI
music by Trewavio Morricone

YOU-KNOW-WHO
,
GO
YOU-KNOW-WHAT
YOURSELF!

29-Nov-2023 16:17:35

Quick find code: 185-186-987-66291111 Back to Top