E
EImo
Guest
Hello.
We are making a mod to hl2sp. We are using our own models and animations for npc enemies.
We don't really have a coder so i'm trying to work out how to clone npc_zombie's AI to our own npc. I have some basic knowledge how c++ works (I understand it a bit but can't really create anything new with it).
I have managed to compile animations and ragdoll with our model. In game it plays idle animation, plays Tantrum when sees player and attacks when player comes near. However, he won't move.
Way I made it work was a bit "cheap" I'd guess
I compiled the npc as "zombie/classic.mdl" and it appeared in hammer when we created "npc_zombie" entity there.
I managed to get rid of zombies legs and torso by editing npc_zombie.cpp.
So It won't split up when he dies from explosion.
I have tried to compile our npc with his real name "boy.mdl" and copy npc_zombie.cpp and rename it npc_boy.cpp. The problem is that Hammer can't find it.
So what I want to know is how to get zombie's AI to our npc and how to get it in Hammer.
And last little thing. Does the naming of bones have effect on cloning the AI. Since we named the bones in Motionbuilder-way (Hips, Spine, Spine1...).
Thanks for reading. I hope we can solve this since there is a bit of Source-honor in line
This mod is a project in our school. We could choose if we wanted to use Source or Unreal-editor. And we chose Source, luckily...
We are making a mod to hl2sp. We are using our own models and animations for npc enemies.
We don't really have a coder so i'm trying to work out how to clone npc_zombie's AI to our own npc. I have some basic knowledge how c++ works (I understand it a bit but can't really create anything new with it).
I have managed to compile animations and ragdoll with our model. In game it plays idle animation, plays Tantrum when sees player and attacks when player comes near. However, he won't move.
Way I made it work was a bit "cheap" I'd guess
I managed to get rid of zombies legs and torso by editing npc_zombie.cpp.
So It won't split up when he dies from explosion.
I have tried to compile our npc with his real name "boy.mdl" and copy npc_zombie.cpp and rename it npc_boy.cpp. The problem is that Hammer can't find it.
So what I want to know is how to get zombie's AI to our npc and how to get it in Hammer.
And last little thing. Does the naming of bones have effect on cloning the AI. Since we named the bones in Motionbuilder-way (Hips, Spine, Spine1...).
Thanks for reading. I hope we can solve this since there is a bit of Source-honor in line