Open ProfOrribilus opened 11 years ago
Err, shouldn't you also spawn extra ammo entities? I'm sure if that will change the amount already loaded into the gun, but it should affect reserve ammo. I think the entity is supposed to give you the default ammo, but DoD:S seems to use different system for default ammo that isn't compatable. What sort of map are you trying to use this for?
I have tried to use the entity of the ammo pack given by players trough "H" key, but it is simply spawned on floor under player's position and it is not pickable. Do you know if there is some other related entity in DoD:S? If not, i could use as workaround a SourceMod plugin.
I have used the _game_playerequip entity in a map where there is a train with a "resupply wagon". I would have used the weapon entities, that allow to specify the ammo quantity, but they disappear after soon be spawned, as i have reported in #954, and they are not parentable (it is a moving train), for now (#955).
There may not be a parent keyvalue, but there is a setparent input, clever use of that might work to some extent.
Ok, thanks. However, weapon entities seem having the issue that gets they disappear soon after be spawned. Have you checked it out? If yes, i suppose we should continue the discussion on the #954.
As title.
Adding opportunes properties to _game_playerequip entity would be good, but it is enough, in my opinion, to get this entity to give a weapon with the default ammo amount present in it when it is given at player's spawning.
P.S. I have found this issue while mapping for Day of Defeat: Source. I don't know, for the time being, if anything like occurs in other Source games too.