ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
649 stars 75 forks source link

[Mapping | At least DoD:S] 'game_player_equip' entity gives to the player a weapon with only one ammo #938

Open ProfOrribilus opened 11 years ago

ProfOrribilus commented 11 years ago

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.

ghost commented 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?

ProfOrribilus commented 11 years ago

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).

ghost commented 11 years ago

There may not be a parent keyvalue, but there is a setparent input, clever use of that might work to some extent.

ProfOrribilus commented 11 years ago

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.