Project Zomboid

Project Zomboid

[b42]Efficiency Skill Mod
此主題已被鎖定
eScape 2024 年 12 月 15 日 上午 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,
< >
目前顯示第 1-2 則留言,共 2
GersonRess  [開發人員] 2024 年 12 月 15 日 下午 7: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 2024 年 12 月 16 日 上午 12: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:
最後修改者:eScape; 2024 年 12 月 16 日 上午 12:44
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50