Added support for client-side VisualThinkers

This commit is contained in:
Boondorl 2025-07-08 14:19:29 -04:00 committed by Ricardo Luís Vaz Silva
commit ca98f33f42
5 changed files with 11 additions and 10 deletions

View file

@ -2714,7 +2714,7 @@ void Net_DoCommand(int cmd, uint8_t **stream, int player)
if (typeinfo && typeinfo->IsDescendantOf("VisualThinker"))
{
DVector3 spawnpos = source->Vec3Angle(source->radius * 4, source->Angles.Yaw, 8.);
auto vt = DVisualThinker::NewVisualThinker(source->Level, typeinfo);
auto vt = DVisualThinker::NewVisualThinker(source->Level, typeinfo, false);
if (vt)
{
vt->PT.Pos = spawnpos;