Bunker Gun --> HMG1 (Un-deploying Mounted Gun)
Posted: Thu Jun 10, 2010 8:11 pm
Here's what I'm trying to accomplish:
A mounted gun has 512 bullets and is located in a defensive position. After the defense is over, if a player uses the gun, it will turn into the custom_hmg1.
If the player used all of the ammunition, then the hmg1 will have no ammo in it. If the player didn't deplete the ammo during the defense, they receive an hmg1 with a small amount of ammo in it.
I figured I would use a game_player_equip to equip the player with the custom_hmg1. Normally I would use map_cfg to change the default clip size to 0 and then use a point_server_command to set it higher when the player gets ammo for the gun. But I don't think I can do this with a custom weapon.
Any ideas?
Worst case scenario would be I have to set the mounted gun to have infinite ammo and then when the defense is over the player that uses the gun gets a fully loaded hmg1. However, this map is stingy on weaponry similar to tysns maps, and I don't want the player to have unlimited ammo on the mounted gun.
A mounted gun has 512 bullets and is located in a defensive position. After the defense is over, if a player uses the gun, it will turn into the custom_hmg1.
If the player used all of the ammunition, then the hmg1 will have no ammo in it. If the player didn't deplete the ammo during the defense, they receive an hmg1 with a small amount of ammo in it.
I figured I would use a game_player_equip to equip the player with the custom_hmg1. Normally I would use map_cfg to change the default clip size to 0 and then use a point_server_command to set it higher when the player gets ammo for the gun. But I don't think I can do this with a custom weapon.
Any ideas?
Worst case scenario would be I have to set the mounted gun to have infinite ammo and then when the defense is over the player that uses the gun gets a fully loaded hmg1. However, this map is stingy on weaponry similar to tysns maps, and I don't want the player to have unlimited ammo on the mounted gun.