adding 2nd knife / weapons
Moderators: Forum moderators, developers
adding 2nd knife / weapons
Hey, i'm back again...(i'm gratuated aswell)
Hello , i'm bussy with a mod for 1.41 this time... a vampire mod...
but i need 2 knifes ( and new weapons ) how can i add a new knife/weapon ?
because this wp_knife2 doesn't spawn...
and another thing: how can i add a delay in "bg_pmove.c"?
it's really different then other files
greetz dutchmeat
http://82.133.85.100/index.php?name=pnP ... e6c6a8b57f
Hello , i'm bussy with a mod for 1.41 this time... a vampire mod...
but i need 2 knifes ( and new weapons ) how can i add a new knife/weapon ?
because this wp_knife2 doesn't spawn...
and another thing: how can i add a delay in "bg_pmove.c"?
it's really different then other files
greetz dutchmeat
http://82.133.85.100/index.php?name=pnP ... e6c6a8b57f
- =FF=im2good4u
- Posts: 3821
- Joined: Wed Feb 05, 2003 7:30 am
- Location: The Netherlands, HOLLAND
- Contact:
wel then have fun trying
<a href="http://bunnyherolabs.com/adopt/showpet. ... dQ=="><img src="http://petimage.bunnyherolabs.com/adopt ... Q0dQ==.png" width="80" height="100" border="0"></a>
-
- Posts: 126
- Joined: Sat Sep 25, 2004 7:12 am
- Contact:
actually , in RTCW it shouldnt be much complicated...
look here is example, Q3 in bg_public.h has enum called weapon_t where are all weapons defined ....
i didnt want to post one for ET ( it is much more longer, much!)
and I dont have RTCW sources..
Well , you have just to search for WP_KNIFE and copy it
for example where you see you should change it to : and so..
I dont know how RTCW works with clientside, but I guess it has weapon files like ET ...
look here is example, Q3 in bg_public.h has enum called weapon_t where are all weapons defined ....
Code: Select all
typedef enum {
WP_NONE,
WP_GAUNTLET,
WP_MACHINEGUN,
WP_SHOTGUN,
WP_GRENADE_LAUNCHER,
WP_ROCKET_LAUNCHER,
WP_LIGHTNING,
WP_RAILGUN,
WP_PLASMAGUN,
WP_BFG,
WP_GRAPPLING_HOOK,
#ifdef MISSIONPACK
WP_NAILGUN,
WP_PROX_LAUNCHER,
WP_CHAINGUN,
#endif
WP_NUM_WEAPONS
} weapon_t;
and I dont have RTCW sources..
Well , you have just to search for WP_KNIFE and copy it
for example where you see
Code: Select all
if (ent->client->ps.weapon == WP_KNIFE) {}
Code: Select all
if (ent->client->ps.weapon == WP_KNIFE || ent->client->ps.weapon == WP_KNIFE2) {}
I dont know how RTCW works with clientside, but I guess it has weapon files like ET ...
Hi! I'm a .signature *virus*! Copy me into your ~/.signature to help me spread!