Author |
Message |
Jacen Solo Newbie
Joined: Oct 19 2004 Posts: 5 Offline
|
Posted: Wed Dec 29, 2004 6:49 pm Post subject: Weapons |
 |
|
|
|
Does anyone know what the weapon values are?... I'm trying to write in some stuff for my bot to shoot different types of weapons but don't know what the values are... the only thing I know is -37000 which OverBurn told me was a level 3 mine with prox and shrap.
I'm writing it for TWCore but I don't think that really matters since it just sends a packet to the server to make it fire the weapon so the values should be the same for all cores. |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
|
Back to top |
|
 |
Jacen Solo Newbie
Joined: Oct 19 2004 Posts: 5 Offline
|
Posted: Wed Dec 29, 2004 7:09 pm Post subject: |
 |
|
|
|
mmm... that doesn't make much sense to me... I've never really looked at MERVBot... the Ship class for the bot in TWCore just has a method called fire and its parameter is a int value and the bot sends that int value in a fire weapon packet. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Wed Dec 29, 2004 8:11 pm Post subject: |
 |
|
|
|
The defines ARE the int values for the weapons. The structure shows how the weapon info is stored in the weapon packet.
d1stort, are you serious? Who wrote that ridiculous code? They should not be allowed to program ever again. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Dec 29, 2004 8:28 pm Post subject: |
 |
|
|
|
Don't make fun of my code, it must be elite because Qndre was my teacher!  |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Wed Dec 29, 2004 8:50 pm Post subject: |
 |
|
|
|
OMG! I'm staying out of this thread. I'm about to puke up what I had for Thanksgiving 1984.  |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Dec 29, 2004 9:18 pm Post subject: |
 |
|
|
|
Haha, yeah gtfo Ek!  |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Dec 29, 2004 9:26 pm Post subject: |
 |
|
|
|
Keep in mind that many of the weapons are controlled by server settings, such as emps.
This is how its written in mervbot (which is exactly what ekted has above)
union weaponInfo
{
struct
{
Uint16 type : 5; // enum Projectile_Types
Uint16 level : 2; // Only for bombs/bullets
Uint16 shrapBounce : 1; // Bouncing shrapnel?
Uint16 shrapLevel : 2; // Shrapnel level 0..3
Uint16 shrapCount : 5; // 0-31
Uint16 fireType : 1; // Bombs -> Mines, Bullets -> Multifire
};
Uint16 n;
};
// Weapon types for weaponInfo.type
enum Projectile_Types
{
// Seen "in the wild"
PROJ_None,
PROJ_Bullet,
PROJ_BBullet,
PROJ_Bomb,
PROJ_PBomb,
PROJ_Repel,
PROJ_Decoy,
PROJ_Burst,
PROJ_Thor,
// Internal to the bot
PROJ_InactiveBullet,
PROJ_Shrapnel
};
// Weapon levels for weaponInfo.level
enum Weapon_Levels
{
LVL_One,
LVL_Two,
LVL_Three,
LVL_Four
};
|
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Dec 29, 2004 11:43 pm Post subject: |
 |
|
|
|
In case Ekted looks at this thread again, that's one of the cleaner ways of doing it in Java.  _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Thu Dec 30, 2004 3:05 pm Post subject: |
 |
|
|
|
If anyone can come up with a better solution, please tell me. I like to learn new techniques, and I've really only known how to program for a year. Heh, I wasn't even around in 1984.
Last edited by D1st0rt on Fri Dec 31, 2004 11:03 am, edited 1 time in total |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
|