PDA

View Full Version : Player start take weapons integers.


DiEgo
01-27-2002, 06:28 PM
anyone know the integer to take ALL weapons away at the player start? Im making a mappack of small minigame type maps, and it is crucial to take away weapons after every level. so anyone know what integer takes away all weapons, so i dont have to go through alot of numbers?

Naythn
01-27-2002, 09:37 PM
You can't do it solely in the editor, unfortunately.:(

Louva-Deus
01-28-2002, 03:08 AM
you can put like 99999999999999999 and it'll take everything away cept 1 colt and knife. you have to make some code changes to remove those.

Iirion Claus
01-28-2002, 05:14 AM
Try 16380 for Second Encounter, 74239 for First Encounter.

DiEgo
01-28-2002, 12:20 PM
Thanks, IIC. Those numbers sound right.

Why cant they just make checkboxes? Like, check the Tommygun box if you want the player to start with the tommygun.. wouldnt that be simpler?

Louva-Deus
01-28-2002, 12:42 PM
Originally posted by Iirion Claus
Try 16380 for Second Encounter, 74239 for First Encounter.
you wouldnt happen to know all the combinations for this?

Mailman
01-28-2002, 01:24 PM
That field represents a bitmask in the code. If you remember your basic binary numbering system, a bit field is split up like this:

128  64  32  16   8   4   2   1
------------------------------------
 1     1    1   1    1   1   1   1

each bit starting from the right represents a weapon. 1 = knife, 2 = colt, 4 = shotgun.

So if you wanted to give/take the shotgun it would be 4 + 2 + 1 = 7.

Correct me if I'm wrong

Louva-Deus
01-28-2002, 06:00 PM
sounds good and theres more on it in the item-by-item help file. thanks

Iirion Claus
01-29-2002, 12:50 PM
Originally posted by Mailman
each bit starting from the right represents a weapon. 1 = knife, 2 = colt, 4 = shotgun.

So if you wanted to give/take the shotgun it would be 4 + 2 + 1 = 7.
1 = knife
2 = colt
4 = double colt
8 = shotgun

I believe the new IbI has the complete list.

DiEgo
01-30-2002, 12:38 PM
The newest item-by-item has all the weapon integers and also includes how to combine them to make certain combinations of giving/taking.

Max
02-07-2002, 07:59 PM
I can't seem to get this to work would someone please tell the exact GIVE and TAKE values for FE and SE.

Can it be done without coding?

DiEgo
02-07-2002, 09:32 PM
It requires no coding at all...


Give weapons

-ulong mask. Combination of bits representing weapons. Players have these weapons when they are spawned at the player marker. The weapons mask is actually a bit field, with each weapon having one bit: The knife is 1, the Colt is 2, the Double Colt is 4, the Shotgun is 8, Double Shotgun is 16, the Tommygun is 32, the Minigun is 64, the Rocket Launcher is 128, the Grenades Launcher is 256, the Laser Rifle is

8192, and the Iron Cannon is 32768. If you want the player to gain or lose specific weapons, simply add the numbers; for example, a double colt and shotgun is 4+8=12. On the First Encounter, the Knife and Colt are always given to the player.



pulled directly from the item by item. In the player start give weapons, if you want the player to start with the Double shotgun and 2 colts, you put 20 in the give weapons catagory of the player marker entity. (double colt = 4, double barrel = 16... 16+4=20.) Taking weapons is the same principle.

Don't know SS:SE... don't have it yet :(

Max
02-07-2002, 10:02 PM
Doesn't seem to work. Can't get player to not have knife and colt.

If you can do this let me know. Don't seem like it can be done (starting player with no weapons) unless I'm being :dork:

DarkSpotInTheCorner
02-08-2002, 06:01 AM
Removing colt and knife is NOT possible without coding. ;)

Iirion Claus
02-09-2002, 09:55 AM
Originally posted by Max
Doesn't seem to work. Can't get player to not have knife and colt.

Diego said:
On the First Encounter, the Knife and Colt are always given to the player.

Same goes for Second Encounter.