Posted by Matthew Pate on November 28, 1998 at 23:56:19:
In Reply to: Weapons posted by Lord_Kull on November 28, 1998 at 21:39:37:
This is all for MotS
Well, it depends exactly on what you want to do. If you want the player to start with something EXTRA, like a strile, or sth, then It's easy. Just modify the startup cog, and put in
SetInv(player, 11, 100); // Energy cells
which would give you 100 energy cells to the player, because Energy cells are bin 11. If you wanted to
Here are some other bins.
bryar_pistol 122
stormtrooper_rifle 123
thermal_detonator 124
repeater 126
rail_detonator 127
sequencer_charge 128
concussion_rifle 129
just replace the '11' with one of those, and the '100' with however many you want. so for a weapon you only want to give them one, so for a STRifle you'd go:
SetInv(player, 123, 1); // Strifle
But, if you want to TAKE AWAY a weapon, you'd have to edit the templates and copy the kyle.cog and modify that. It's a little bit harder than this.
Hope that helps!