Found some info:
- Creating a "monster" with the code attached in the previous post isn't really performant as it updates OnGameFrame, so, high resource demand is a fact.
- Func_track_train is not fully working in CSGO.
- Maybe creating a timer to update the entity is needed to create smart-like behaviour.
- Animating isn't as easy as i thought, but i added another ELSE so i can change animation's playbackrate:
PHP Code:
else if (StrEqual(attribute, "playbackrate")){
float speed = StringToFloat(value);
SetVariantFloat(speed);
AcceptEntityInput(monster, "SetPlaybackRate");
SetArrayCell(MonsterPlayBackRate, mIndex, speed);
}
This will help to use "move_knife_w" animation and make it walk forward instead of backward.
Still haven't tried it all, nor studied it all, but, path_track isn't a reliable option it seems.
And TrainTrack plugin (category ANY) isn't properly working, just couldn't make any model to follow a path_track, it just disappears doing nothing.
__________________