Solved Add atk, die and dmg to a pickup pet?

Status
Not open for further replies.

MrDeso

Premium
Premium
Joined
Jun 18, 2024
Messages
3
Reaction score
1
Points
3
Hey guys

Ive been trying to solve this issue for some time now and are starting to get a real headache from all the different information that i get. :unsure: Does anyone know if its possible to add animations like atk1, die and dmg animations to a pickup pet? So it can be used as a monster that attacks the player instead of a pickup pet ? :)

Screenshot_1.png
Dear regards
MrDeso :geek:
 
Solution
It really depends on what the implementation you're looking forward to. Firstly, there are a lot of CS pets that wouldn't have those animations, meaning you'd have to give them animations by either copying the existing animations from the model, or, export the model from the o3d format, create a custom animation or motion blend another animation, reimport the model + the custom animation, update the model file.. But then it still wouldn't work because,

You'd need the source code logic and how you want the desired effect to be.

It's more simple when it's like, "When player dies, cs pet does die animation" or "when player gets attacked, cs pet does dmg-1 animation", but if you want a custom AI where its like, "my cs pet fights with me"...
I assume that some monster pets, such as "Baby Luia" and "Small Mia", already have these animations, and are just versions of these monsters with a smaller scale rendering, definition processor, and AI.

You will probably have to edit the AIPet.cpp/h files to achieve the desired effect, and you can use existing AI's such as AIGuard and AIMonster2 as a base.
 
  • Like
Reactions: zOmbie
It really depends on what the implementation you're looking forward to. Firstly, there are a lot of CS pets that wouldn't have those animations, meaning you'd have to give them animations by either copying the existing animations from the model, or, export the model from the o3d format, create a custom animation or motion blend another animation, reimport the model + the custom animation, update the model file.. But then it still wouldn't work because,

You'd need the source code logic and how you want the desired effect to be.

It's more simple when it's like, "When player dies, cs pet does die animation" or "when player gets attacked, cs pet does dmg-1 animation", but if you want a custom AI where its like, "my cs pet fights with me", that requires a bit more to execute.
 
  • Like
Reactions: zOmbie
Solution
Status
Not open for further replies.