MysteriousMilk / NS2_CombatPlusPlus

Recreation of Natural Selection Combat mode with with some tweaks and enhancements.
MIT License
6 stars 5 forks source link

Placed structures do not have their owner set to the player that placed them #17

Closed MysteriousMilk closed 6 years ago

MysteriousMilk commented 6 years ago

Right now, when a marine places a structure, that marine is not set as the owner of the structure. This will become problematic later on when trying to track who to give kill xp for when a sentry kills another player.

Its an easy fix. A the time of writing this, line 131 of CPPBuilder.lua needs to be uncommented and changed to:

struct:SetOwner(player)