Loading...
  OR  Zero-K Name:    Password:   

Smokes mode hub

25 posts, 2183 views
Post comment
Filter:    Player:  
Page of 2 (25 records)
sort
some people keep asking how to find my modes you can access them via PLAY . MODES . NOT FEATURED

ill also post links from here as-well as keep a list of example code and other stuff its WIP but i plan to add allot here..

special shout out to these great mod developers:

SHAMAN
XNTWSAD
BrutaTralb

MODES:

OTHER DEVS:

[Spoiler]

OLD ABANDONED:

[Spoiler]

NEW SUPPORTED:

[Spoiler]

USEFUL:

[Spoiler]

CODE:

[Spoiler]

[Spoiler]
+11 / -0
bugs to fix:
[Spoiler]
+1 / -0
KNOWN ISSUES / things to remember when writing code:
[Spoiler]
+0 / -0
cant seem to find why this wont work
[Spoiler]
+0 / -0
5 months ago
[Spoiler]
+0 / -0
thanks.. ill rty to help you.

this is how i do things: i add 1 piece of code at a time to test it.

for example:

for name, ud in pairs(UnitDefs) do
if ud.weapondefs then
for weaponname, wd in pairs(ud.weapondefs) do
if wd.range then
wd.range = wd.range * 100
end
end
end
end
+0 / -0
5 months ago
thanks.
im particularly troubled with this:

quote:

if wd.damage then
for _,damag in pairs(wd.damage) do
damag = multiply_and_round(damag, rmultiplier)
end
end
if wd.shield then
for nm,shiel in pairs(wd.shield) do
if (nm == "power") then
shiel = multiply_and_round(shiel, rmultiplier)
end
if (nm == "powerregen") then
shiel = multiply_and_round(shiel, rmultiplier)
end
end
end


Here, I try to edit the damages and shield tables which look like this:
{ value = 10, value2= 200 }
I have tried many ways of accessing these, with and without pairs,but it just won't work.
+1 / -0
5 months ago
[Spoiler]

does any of this working code help?
i have spent most of the night ddoing other things and cant help right now because im too sleepy.. ill help you more later once im rested. i didnt look long but your code has the word shiel in it should that be shield?
+1 / -0
5 months ago
Yes, thanks!
I could access the values with "if wd.damage and wd.damage.default then"
+0 / -0
5 months ago
wtf?
Why does 1 work, but 2 does not?

1:

function multiply_and_round(n, e)
n = n * e
if (n > 100) then
n = round_to_ten(n)
else
n = round_to_five(n)
end
return n
end


2:

function multiply_and_round(n, e)
n = n * e
if (n > 1000) then
n = round_to_fifty(n)
end
if (n > 100) then
n = round_to_ten(n)
else
n = round_to_five(n)
end
return n
end
+0 / -0

5 months ago
COMEBACK SMOKEHERO !

THE GAMES WE PLAY ARE WORTH MORE THAN THIS...

WE ARE ALLWAYS LEARNING !
+1 / -0
TheFlyingFortress
Comeback SmokeDragon!
+1 / -0
5 months ago
What? Is SMokedragon ded???
+0 / -0
Yah he made a drama post, was told to stop, asked for his account to be deleted so GF reset his password.

SmokeDragon be gone.

Unfortunate. The guy ran a room with weird game modes. That was fun for a while.
+1 / -0


5 months ago
quote:
Yah he made a drama post, was told to stop, asked for his account to be deleted so GF reset his password.

That is not what happened. I clarified: https://zero-k.info/Forum/Post/267252#267252
+1 / -0
4 months ago
i fel it was my issue. the admins could not have anticipated i would get so triggered.. please dont blame them i dont.. i like the devs. they are trying there best in there own way 'like me' to keep order.

anyway im back now. i couldnt stay away forever. i miss you guys too much. =)
+0 / -0
4 months ago
@ Superyard:

chat gpt said this:

Function 2 assumes that rounding n to fifty when n > 1000 won't interfere with the subsequent rounding to ten or five based on the condition n > 100. However, if n is rounded to fifty initially and then n happens to fall between 100 and 1000, it might not get correctly rounded to ten or five as intended.
+0 / -0
to do list so i dont forget:


impliment random buff mode now that i have the tech
fix shield mods
make train mode
heightBoostFactor = 0, -- see if this can be used to fix superjump mod 'weapondef main'
+0 / -0
3 months ago
All projects on hold for health reasons
+4 / -0

3 months ago
hope nothing serious, get better soon
+3 / -0
Page of 2 (25 records)