Project Zomboid

Project Zomboid

进阶弹道
Tchernobill 2022 年 12 月 30 日 上午 10:53
KillCount compatibility
Hi,

When a player kills a Z with a range weapon and this mod active: this mod increases xp directly and OnWeaponHitXp event is not triggered.
When a player kills a Z with a range weapon in Vanilla: xp is increased through OnWeaponHitXp event triggered by SwipeStatePlayer java class.

You could replace your direct xp update
vt[19]:getXp():AddXP(Perks.Aiming, 1);

by a OnWeaponHitXp call similar to vanilla
hittingPlayer:setLastHitCount(1);--do not forget this or you'll have xp gain discrepencies triggerEvent("OnWeaponHitXp",hittingPlayer, weapon, characterTarget, damage);

I am very interested because this OnWeaponHitXp event is used by KillCount mod to distinguish
car kills from weapon kills.
It would also ensure some consistency overtime with Vanilla.

If you do not like this solution but wanna help anyway, you could call an empty global function when killing a Z so that KillCount can override it and use that override to identify kill sources.

Anyway GG for this mod and thanx for the Rollover. :spiffo:
< >
正在显示第 1 - 11 条,共 11 条留言
Shurenai 2023 年 1 月 1 日 上午 5:40 
I second this request- Like the mod, but I'm also using killcount, More Traits and More Traits' dynamic submod; The MT Dynamic submod uses killcount to make certain traits dynamic using killcount as part of it's criteria; EG, kill 1000 zombies with firearms to remove/add the associated trait.

So the way Advanced Trajectory implements exp gain n stuff breaks compatbility with several other mods- Ostensibly with any mod that calls on the onweapon hit thing as described.
Okaminho 2023 年 1 月 15 日 下午 7:47 
Yes please!
I'd like for this to be fixed too as it kida doubles the number of kills I've been getting and it might impact the SOTO mod
BloodContact 2023 年 1 月 16 日 下午 12:43 
:steamthis: :steamthumbsup:
喝了伏特加的电脑 2023 年 1 月 18 日 下午 7:31 
AGREE
The Bread Stealer 2023 年 1 月 19 日 下午 9:24 
Has this been fixed?
Dovahkiin 2023 年 1 月 30 日 下午 9:57 
Sorry to bother you but I would like to know where in the Vanilla version "OnWeaponHitXp" is called.
I just started trying to test some mods and don't know how to start
Fraywind 2023 年 2 月 17 日 下午 12:15 
Came here just for this, I like the mod but the lack of KillCount compatibility does make it difficult to use with the other listed mods.
UshankaMan 2023 年 3 月 20 日 下午 10:03 
is the mod fixed yet? ive been aware of it for a long time but never got it due to this exact reason. i am still waiting for a fix
Gato Sexo 2023 年 3 月 24 日 下午 1:22 
nah
Tchernobill 2023 年 5 月 4 日 下午 8:38 
This is corrected with update 4 :D
喵了个球  [开发者] 2023 年 5 月 5 日 下午 6:24 
Thank you for your suggestion
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50