drgbase icon indicating copy to clipboard operation
drgbase copied to clipboard

Set weapon position to NextBot center in ENT:PickupWeapon

Open Zaurzo opened this issue 10 months ago • 2 comments

Fixes https://github.com/Dragoteryx/drgbase/issues/10

The problem was that the weapon is left at worldspawn and parented, so for example, if you spawned the NextBot in a map like gm_flatgrass, you would almost never be able to hear the gun shots

Zaurzo avatar Apr 25 '24 23:04 Zaurzo

You're only setting the weapon's position when the nextbot picks up the weapon, wouldn't it be better to set it in the nextbot's serverside Think hook?

Dragoteryx avatar Apr 29 '24 15:04 Dragoteryx

You're only setting the weapon's position when the nextbot picks up the weapon, wouldn't it be better to set it in the nextbot's serverside Think hook?

The weapon gets parented to the NextBot, constantly setting the position in Think seems unnecessary

Zaurzo avatar Apr 29 '24 16:04 Zaurzo