adding 2nd knife / weapons

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
User avatar
dutchmeat
Posts: 62
Joined: Tue Jan 28, 2003 8:08 am
Location: Netherlands
Contact:

adding 2nd knife / weapons

Post by dutchmeat »

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
User avatar
dutchmeat
Posts: 62
Joined: Tue Jan 28, 2003 8:08 am
Location: Netherlands
Contact:

Post by dutchmeat »

Hello ??
User avatar
Nail
Posts: 425
Joined: Fri Jan 02, 2004 3:47 pm
Contact:

Post by Nail »

you're prolly better off asking in Splash Damage forums as your question is irrelevant to ETPro
Improvise, Adapt, Overcome
User avatar
gotenks
Posts: 3465
Joined: Fri Nov 15, 2002 4:12 pm
Location: out of my mind
Contact:

Post by gotenks »

Nail wrote:you're prolly better off asking in Splash Damage forums as your question is irrelevant to ETPro
actually this is what the "ET modding" section is for, but splash damage couldn't hurt
My Website
Image
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
User avatar
Nail
Posts: 425
Joined: Fri Jan 02, 2004 3:47 pm
Contact:

Post by Nail »

guess I could have worded it better
Improvise, Adapt, Overcome
User avatar
dutchmeat
Posts: 62
Joined: Tue Jan 28, 2003 8:08 am
Location: Netherlands
Contact:

Post by dutchmeat »

guess i tried it already with splashd , and wanted to try here :O
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

wel then have fun trying :lol:
User avatar
dutchmeat
Posts: 62
Joined: Tue Jan 28, 2003 8:08 am
Location: Netherlands
Contact:

Post by dutchmeat »

so you dont know ?
The Necromancer
Posts: 126
Joined: Sat Sep 25, 2004 7:12 am
Contact:

Post by The Necromancer »

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 ....

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;
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

Code: Select all

if (ent->client->ps.weapon == WP_KNIFE) {}
you should change it to :

Code: Select all

if (ent->client->ps.weapon == WP_KNIFE || ent->client->ps.weapon == WP_KNIFE2) {}
and so..
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!
Post Reply