Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
19.07.2001, 19:34
Son-Goten



nicht mit noclip......
also: wenn ich meiner minigun 100er magazine gebe, klappt alles wunderbar und sie feuert auch..
wenn ich noclip einstelle, kann ich sie zwar anwählen, allerdings ist dann mit ballern schluss ;)
außerdem hab ich maximal 254 patronen (oder so) , anstatt der eingestellten 400....
hier mal der code, wenn sie auf noclip eingestellt ist ;)

#define WEAPON_NONE 0
#define WEAPON_CROWBAR 1
#define WEAPON_GLOCK 2
#define WEAPON_PYTHON 3
#define WEAPON_MP5 4
#define WEAPON_CHAINGUN 5
#define WEAPON_CROSSBOW 6
#define WEAPON_SHOTGUN 7
#define WEAPON_RPG 8
#define WEAPON_GAUSS 9
#define WEAPON_EGON 10
#define WEAPON_HORNETGUN 11
#define WEAPON_HANDGRENADE 12
#define WEAPON_TRIPMINE 13
#define WEAPON_SATCHEL 14
#define WEAPON_SNARK 15
#define WEAPON_MINIGUN 16

#define WEAPON_ALLWEAPONS (~(1<<WEAPON_SUIT))

#define WEAPON_SUIT 31 // ?????

#define MAX_WEAPONS 32

#define MAX_NORMAL_BATTERY 100

// weapon weight factors (for auto-switching) (-1 = noswitch)
#define CROWBAR_WEIGHT 0
#define GLOCK_WEIGHT 10
#define PYTHON_WEIGHT 15
#define MP5_WEIGHT 15
#define SHOTGUN_WEIGHT 15
#define CROSSBOW_WEIGHT 10
#define RPG_WEIGHT 20
#define GAUSS_WEIGHT 20
#define EGON_WEIGHT 20
#define HORNETGUN_WEIGHT 10
#define HANDGRENADE_WEIGHT 5
#define SNARK_WEIGHT 5
#define SATCHEL_WEIGHT -10
#define TRIPMINE_WEIGHT -10
#define MINIGUN_WEIGHT 21

// weapon clip/carry ammo capacities
#define URANIUM_MAX_CARRY 100
#define _9MM_MAX_CARRY 250
#define _357_MAX_CARRY 36
#define BUCKSHOT_MAX_CARRY 125
#define BOLT_MAX_CARRY 50
#define ROCKET_MAX_CARRY 5
#define HANDGRENADE_MAX_CARRY 10
#define SATCHEL_MAX_CARRY 5
#define TRIPMINE_MAX_CARRY 5
#define SNARK_MAX_CARRY 15
#define HORNET_MAX_CARRY 8
#define M203_GRENADE_MAX_CARRY 10
#define MG_MAX_CARRY 400

// the maximum amount of ammo each weapon's clip can hold
#define WEAPON_NOCLIP -1

#define CROWBAR_MAX_CLIP WEAPON_NOCLIP
#define GLOCK_MAX_CLIP 17
#define PYTHON_MAX_CLIP 6
#define MP5_MAX_CLIP 50
#define MP5_DEFAULT_AMMO 25
#define SHOTGUN_MAX_CLIP 8
#define CROSSBOW_MAX_CLIP 5
#define RPG_MAX_CLIP 1
#define GAUSS_MAX_CLIP WEAPON_NOCLIP
#define EGON_MAX_CLIP WEAPON_NOCLIP
#define HORNETGUN_MAX_CLIP WEAPON_NOCLIP
#define HANDGRENADE_MAX_CLIP WEAPON_NOCLIP
#define SATCHEL_MAX_CLIP WEAPON_NOCLIP
#define TRIPMINE_MAX_CLIP WEAPON_NOCLIP
#define SNARK_MAX_CLIP WEAPON_NOCLIP
#define MINIGUN_MAX_CLIP WEAPON_NOCLIP
#define MINIGUN_DEFAULT_AMMO 200

// the default amount of ammo that comes with each gun when it spawns
#define GLOCK_DEFAULT_GIVE 17
#define PYTHON_DEFAULT_GIVE 6
#define MP5_DEFAULT_GIVE 25
#define MP5_DEFAULT_AMMO 25
#define MP5_M203_DEFAULT_GIVE 0
#define SHOTGUN_DEFAULT_GIVE 12
#define CROSSBOW_DEFAULT_GIVE 5
#define RPG_DEFAULT_GIVE 1
#define GAUSS_DEFAULT_GIVE 20
#define EGON_DEFAULT_GIVE 20
#define HANDGRENADE_DEFAULT_GIVE 5
#define SATCHEL_DEFAULT_GIVE 1
#define TRIPMINE_DEFAULT_GIVE 1
#define SNARK_DEFAULT_GIVE 5
#define HIVEHAND_DEFAULT_GIVE 8
#define MINIGUN_DEFAULT_GIVE 200
#define MINIGUN_DEFAULT_AMMO 200

// The amount of ammo given to a player by an ammo item.
#define AMMO_URANIUMBOX_GIVE 20
#define AMMO_GLOCKCLIP_GIVE GLOCK_MAX_CLIP
#define AMMO_357BOX_GIVE PYTHON_MAX_CLIP
#define AMMO_MP5CLIP_GIVE MP5_MAX_CLIP
#define AMMO_CHAINBOX_GIVE 200
#define AMMO_M203BOX_GIVE 2
#define AMMO_BUCKSHOTBOX_GIVE 12
#define AMMO_CROSSBOWCLIP_GIVE CROSSBOW_MAX_CLIP
#define AMMO_RPGCLIP_GIVE RPG_MAX_CLIP
#define AMMO_URANIUMBOX_GIVE 20
#define AMMO_SNARKBOX_GIVE 5
#define AMMO_MINIGUNCLIP_GIVE 400

--

zum Seitenanfang zum Seitenende Profil || Suche
001
19.07.2001, 19:38
RirA



Hm das ist ein altes Problem, es liegt daran, dass man nicht so viel Ammo einstellen kann, sondern nur 250 oder so, weil das von HL in bytes gerechnet wird oder so... (Weiss das jetzt auch nicht mehr genau)

--

zum Seitenanfang zum Seitenende Profil || Suche
002
19.07.2001, 19:47
Zeeke



Ja, genau...
HL hat nur ein Byte dafür, und da geht halt nicht mehr als 0-255, du kannst es aber erhöhen, hatten wir hier schonmal im Forum, weiss jetzt leider nicht wo.

--

zum Seitenanfang zum Seitenende Profil || Suche
003
19.07.2001, 19:50
Son-Goten



k, danke... ^-^

--

zum Seitenanfang zum Seitenende Profil || Suche
004
19.07.2001, 19:51
RirA



no prob man

--

zum Seitenanfang zum Seitenende Profil || Suche
005
19.07.2001, 19:58
Son-Goten



hmm... mit noclip will er trotzdem nicht schießen... *grummel*
naja.. gibt´s miniguns mit magazinen? *gggg*

--

zum Seitenanfang zum Seitenende Profil || Suche
006
19.07.2001, 20:16
Polymorph



Musste man dafür nicht irgendwie AmmoX oder eine der Waffen messages umschreiben? als von WRITE_BYTE auf WRITE_SHORT (Mein ich natürlich , hehe bin bischen zittrig 8) oder sowas?

--

----------------------------------------
[url="mailto:polymorph@gdnmail.net"]Polymorph[/url]
Lead Programmer of Paroxysm - Alien Encounters


Dieser Beitrag wurde am 20.07.2001 um 20:00 von Polymorph bearbeitet.
zum Seitenanfang zum Seitenende Profil || Suche
007
19.07.2001, 20:18
RirA



naja so ganz wage mag das stimmen :c

--

zum Seitenanfang zum Seitenende Profil || Suche