Problem with zombie soldier Created 6 months ago2023-10-02 15:06:46 UTC by Scientistbeta Scientistbeta

Created 6 months ago2023-10-02 15:06:46 UTC by Scientistbeta Scientistbeta

Posted 6 months ago2023-10-02 15:06:46 UTC Post #347899
I coded the zombie soldier. But for some reason It does not damage me and the other npcs , but the ai works fine.
ZS.gifZS.gif
and the npcs ignore the zombie soldier

Fixed image code - Urby
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-02 18:15:03 UTC Post #347902
Have you checked if you added the zs to your skill.cfg?
These linesThese lines
Posted 6 months ago2023-10-03 03:24:25 UTC Post #347908
i have both skill.cfg and skillopfor.cfg

should i have only one?

or modify skill.cfg to have it
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-03 18:00:09 UTC Post #347912
I would assume you've modded the zombie soldier into the base Half-Life game, so I would expect you would need to add those zombie soldier values to your skill.cfg file
monster_urby monster_urbyGoldsourcerer
Posted 6 months ago2023-10-04 03:53:53 UTC Post #347914
I modify the skill.cfg then i got this console message
User posted image
And still didn't work

Fixed image code again... - Urby
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-04 15:01:31 UTC Post #347916
I'm afraid I don't know in that case. This is beyond my skill set.
monster_urby monster_urbyGoldsourcerer
Posted 6 months ago2023-10-04 16:37:24 UTC Post #347917
Oh ok

Thanks for the help

and also sorry for the broken image code (since am new to this)
thank you for fixing it again
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-04 21:51:07 UTC Post #347918
Do your cvars have a valid value? Like
sk_zombie_soldier_dmg_both_slash1 "30"
It will not work if the value is 0.
Posted 6 months ago2023-10-05 04:29:32 UTC Post #347919
The values are not zero at all

/ Zombie Soldier
sk_zombie_soldier_health1 "60"
sk_zombie_soldier_health2 "60"
sk_zombie_soldier_health3 "120"

sk_zombie_soldier_dmg_one_slash1 "10"
sk_zombie_soldier_dmg_one_slash2 "20"
sk_zombie_soldier_dmg_one_slash3 "20"

sk_zombie_soldier_dmg_both_slash1 "25"
sk_zombie_soldier_dmg_both_slash2 "40"
sk_zombie_soldier_dmg_both_slash3 "40"
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-05 07:27:29 UTC Post #347920
Show all of the code you've written and modified to implement this NPC.
Posted 6 months ago2023-10-05 11:37:30 UTC Post #347921
link

if the link does not work please tell me.
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-05 13:04:51 UTC Post #347922
The link is inaccessible because you need to share access.

Just post the code directly using code blocks.
Posted 6 months ago2023-10-05 13:14:21 UTC Post #347923
Tried using code blocks

says that "may not be greater than 10000"

But i set link to "anyone with the link"

so check the link works

link

If it does not work please tell me again
Scientistbeta ScientistbetaGravity is Great!
Posted 6 months ago2023-10-05 14:36:23 UTC Post #347924
Posted 6 months ago2023-10-05 14:44:49 UTC Post #347925
Oh

seems like I missed game.cpp

Thanks for telling me

ill check if it works

Edit: it works , thank you everyone that helped and you guys are best
Scientistbeta ScientistbetaGravity is Great!
You must be logged in to post a response.