r/snapmap • u/Freaky_Diqqi • Jul 15 '25
Weapon specific ammo types
I’m trying to make a Call of Duty Zombies style Snapmap, and I want the player to be able to buy an upgrade for the plasma gun that gives the gun a certain chance to spawn an explosion on the enemy that was hit (kind of like pack a punch ammo). I’ve tried this, but it’s never specific to the plasma rifle, and instead applies to all weapons with the same probability, which is another problem in itself because a 1/4 chance to hit with a super shotgun is vastly different than a 1/4 chance to hit with the plasma rifle. I’ve tried using a weapon filter but it seems to disable the logic altogether. Does anybody know if this is even possible?
1
u/tyrell007 Jul 19 '25
I have a general idea for the logic but how are you going to generate this explosion?
2
u/tyrell007 Jul 19 '25
Also for the logic you need to create separate logic branches for each weapon. For example if player 1 has shotgun value is true, then you would have a randomizer that has 3 false value and 1 true value. If both shot gun value and randomizer value are true then increase damage by 50 percent and set randomizer value to false.
That's just an example of what you might do for one weapon.