Hi, I'm trying to make a mutator that removes the starting weapons from all players and bots. (thus, they have to pick up a weapon first before they can shoot anything). I'm pretty much an unrealscript newbie, although I have coded before.
On a quick search through the forums and the web I noticed many tips on how to replace your default weapons, but not much that immediately suggests how to remove them.
I've looked at the Arena mutator and have tried to modify it, and I do end up removing the weapons from the player, but for some reason I cant pick up any weapons - it does nothing when I run over them.
I've also seen code similar to something like:
ModifyPlayer()
{
pawn.giveWeapon("New Weapon Name");
}
Is there something simple like that, that works in reverse? It would be nicer to just remove the hammer and assault rifle from the players as they spawn, rather than what Arena seems to do - go through everything and replace it with the ArenaWeapon.
Thanks!
On a quick search through the forums and the web I noticed many tips on how to replace your default weapons, but not much that immediately suggests how to remove them.
I've looked at the Arena mutator and have tried to modify it, and I do end up removing the weapons from the player, but for some reason I cant pick up any weapons - it does nothing when I run over them.
I've also seen code similar to something like:
ModifyPlayer()
{
pawn.giveWeapon("New Weapon Name");
}
Is there something simple like that, that works in reverse? It would be nicer to just remove the hammer and assault rifle from the players as they spawn, rather than what Arena seems to do - go through everything and replace it with the ArenaWeapon.
Thanks!