Project Zomboid

Project Zomboid

[b42]Efficiency Skill Mod
Denne tråd er blevet låst
eScape 15. dec. 2024 kl. 10:54
Update: 15 Dec @ 2:09pm
Alright, after this update, I want to say that I've learned something from your code, and I see you've been using my code, too. However, I didn't see you mention that anywhere?

We're both working on our first mods and learning along the way, which I completely understand.

I agree with almost everything in your new update, except for the part where you claim my old code implemented TimedActionQueue the wrong way.
The old code still only affects the first action in the queue, my new update will fix that and complete the implementation.

I'll release a new version soon.

P.S.

If maxTime ~= -1 , there's no need to apply eff when maxTime = 1 (Instant Timed Action).

Cheers,
< >
Viser 1-2 af 2 kommentarer
GersonRess  [udvikler] 15. dec. 2024 kl. 19:11 
Hey man, to clarify, I didn’t use your code, as i did on pretty much all the functions, i searched its references on the game's /media folder, so i used this function to make things work on the queue:
function ISTimedActionQueue:addToQueue (action)
--[[
if isKeyDown(Keyboard.KEY_ESCAPE) then
self:clearQueue()
end
--]]
local count = #self.queue;
table.insert(self.queue, action );
--self.queue[ISTimedActionQueue.IDMax] = {id = ISTimedActionQueue.IDMax, character = character, action = action};
--print("action inserted. found "..count.." items on queue.");

-- none in queue, so go!
if count == 0 then
self.current = action;
action:begin();
--print("action started.");
-- ISTimedActionQueue.IDMax = ISTimedActionQueue.IDMax + 1;
end

end

I also tried to make it work seamlessly with this function.

I’ll admit I don’t know much about the game’s code yet, which is why my implementation isn’t very polished. That’s why I appreciate your suggestions—they’re definitely helpful.

The reason I didn’t mention you is simply because I didn’t use your code.

Cheers,
eScape 16. dec. 2024 kl. 0:42 
Alright, forget about my misunderstanding. Chill. I don't want to claim anything here, just trying to connect with you for smooth and working functions. :steammocking:
Sidst redigeret af eScape; 16. dec. 2024 kl. 0:44
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50