I have already made this changes.
I added a new line in the GetAmmoDef method with :

def.AddAmmoType("Fusil", DMG_BULLET, TRACER_LINE, "sk_plr_dmg_fusil",
"sk_npc_dmg_fusil", "sk_max_fusil", BULLET_IMPULSE(800, 5000), 0 );=20

"Fusil" is the name of my ammo, as declared in the weapon file script =
and in
item_ammo.cpp (from Citem class)

So I suppose my ammo is added. Even because when I try a impulse 101 I =
got
no error of some ammo undeclared or type...

So that's very strange.
At begining, I'd just copy the 357 class, only changing the name. It was =
all
working. Logically.

But making all independant (well, I still use all 357 models, I'm just a
coder), I must forgot something...


-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Adrian =
Finol
Envoy=E9 : mardi 14 d=E9cembre 2004 09:37
=C0 : [EMAIL PROTECTED]
Objet : RE: [hlcoders] M_iPrimaryAmmoType

Did you add the ammo type? Search for CAmmoDef *GetAmmoDef() and you'll =
see
how HL2 adds ammo types.


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to