| Blockland Forums > Suggestions & Requests |
| Seriously, a weapon randomizing script on spawn. |
| (1/4) > >> |
| Sami2ss:
A randomizing script that gives you a random weapon out of a certain set of weapons. For example, you have an inventory already set up, but you want one weapon for everyone to be the variable. The variable weapon can only be out of a certain set of weapons, let's just call them gun1 and gun2. The variable weapon randomly gives each person one of these weapons each time they spawn. I don't think it should be limited to just a set of two weapons, though. |
| The Corporation:
So bushido's weapon mod on his server. Dowant. |
| Headcrab Zombie:
I made something like this long ago, it gave you two weapons It wasn't intended for release, though (the weapon list is hard-coded) and it's on another computer that I can't access right now |
| Sami2ss:
--- Quote from: Headcrab Zombie on October 09, 2012, 03:33:46 PM ---I made something like this long ago, it gave you two weapons It wasn't intended for release, though (the weapon list is hard-coded) and it's on another computer that I can't access right now --- End quote --- Is it that hard coded that you can't just go in and add more lines of code to give you more weapons/a bigger variety? |
| Headcrab Zombie:
You would have to open up the weapon files to find the item datablock name (or find it through various script means such as echo(findclientbyname("name").player.getMountedImage(0).getDatablock().item); ), then you would add that to a list in the add-on. As for changing the number of weapons it gives you, that would require more work. I've also only used it as the only weapons, I haven't used it with static weapons chosen in the minigame settings. I don't know if it works, but if it doesn't it wouldn't be an issue to fix. |
| Navigation |
| Message Index |
| Next page |