Project Zomboid

Project Zomboid

[b42]Efficiency Skill Mod
This topic has been locked
eScape 15 Dec, 2024 @ 10:54am
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,
< >
Showing 1-2 of 2 comments
GersonRess  [developer] 15 Dec, 2024 @ 7:11pm 
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 @ 12:42am 
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:
Last edited by eScape; 16 Dec, 2024 @ 12:44am
< >
Showing 1-2 of 2 comments
Per page: 1530 50