Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 06:59:33 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Equipment IDs? People get more equipment than they paid for.
Pages: [1]
Author Topic: Equipment IDs? People get more equipment than they paid for.  (Read 3547 times)
Chrik
Poster

Posts: 36

Owner Of SLAGaming.net Community


« on: September 10, 2010, 10:47:29 AM »

Hey. On my server, we have a LOT of custom stuff (made by me).
Now, i also made custom equipment like ID Stealer, Fake Body, and more.
When someone buys one of the custom equipment, sometimes he gets more than he paid for.
If he buys a ID Stealer, he get fake body, disguise, and radar for some reason.

Each equipment has their own number (flag), so i cant see the problem.
Can someone help me?

TTT #1: 109.70.148.68:27015
TTT #2: 109.70.148.68:27018

TTT servers with a Hats/Models Shop, achievements, highscores and more!
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: September 10, 2010, 07:13:36 PM »

The ids need to be powers of two for technical reasons. So for every new item, the number should be the last one times two. That's why the default items go: 1, 2, 4. If you were to add four more they should go: 8, 16, 32, 64.

Incidentally, when you have a total of about 7 items like that, you've reached the limit of what the game supports. I have increased this to 16 for next version. I've also clarified the comments in the equipment_items file about the numbering stuff.
« Last Edit: September 10, 2010, 07:16:10 PM by Bad King Urgrain »
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #2 on: September 10, 2010, 11:21:02 PM »

Lolbinary.

It's good to know this, I bet a lot of people messed up before.

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Chrik
Poster

Posts: 36

Owner Of SLAGaming.net Community


« Reply #3 on: September 12, 2010, 02:36:03 PM »

Thanks a lot :D

TTT #1: 109.70.148.68:27015
TTT #2: 109.70.148.68:27018

TTT servers with a Hats/Models Shop, achievements, highscores and more!
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Equipment IDs? People get more equipment than they paid for. « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 17 queries.