.


Welcome to Quake3World: Your World is waiting...



UBBFriend: Email This Page to Someone!
  Quake3World.com Forums
  Editing & Modifications
  Stop weapons from loading

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Stop weapons from loading
Mongo
Grunt

Posts: 50
Registered: Dec 1999

posted 01-19-2000 07:52 PM     Click Here to See the Profile for Mongo   Click Here to Email Mongo     Edit/Delete Message Reply w/Quote   
I've been running through the code (and having fun with it), but i can't figure out how to stop the game from using certain weapons. I don't want the loaded at all.

Thanks.

------------------
--Mongo

"There is no reason for any individual to have a computer in their home."
--Ken Olson, World Future Society Convention, 1977


stainz[8uUP]
Grunt

Posts: 42
Registered: Nov 1999

posted 01-19-2000 11:35 PM     Click Here to See the Profile for stainz[8uUP]   Click Here to Email stainz[8uUP]     Edit/Delete Message Reply w/Quote   
I have been trying this also but can't seem to get it to work im pretty sure if we work together with this we could figure it out unless somebody allready has and could point us in the right direction my iCQ is 52732174

------------------
eat me
eat me NOW


-=Jazz=-
Commander

Posts: 83
Registered: Jan 2000

posted 01-20-2000 03:52 AM     Click Here to See the Profile for -=Jazz=-   Click Here to Email -=Jazz=-     Edit/Delete Message Reply w/Quote   
g_spawn.c is the file you want... here's code to take out the BFG & BFG Ammo (for my BFGTag Mod)

qboolean G_CallSpawn( gentity_t *ent ) {
spawn_t *s;
gitem_t *item;

if ( !ent->classname ) {
G_Printf ("G_CallSpawn: NULL classname\n");
return qfalse;
}

// check item spawn functions
for ( item=bg_itemlist+1 ; item->classname ; item++ ) {
if ( !strcmp(item->classname, ent->classname) ) {
// found it
if( item->giType == IT_TEAM && g_gametype.integer != GT_CTF ) {
return qfalse;
}
if ( item->giTag == WP_BFG ) // No BFG Or Ammo
{
return qfalse;
}
G_SpawnItem( ent, item );
return qtrue;
}
}

// check normal spawn functions
for ( s=spawns ; s->name ; s++ ) {
if ( !strcmp(s->name, ent->classname) ) {
// found it
s->spawn(ent);
return qtrue;
}
}
G_Printf ("%s doesn't have a spawn function\n", ent->classname);
return qfalse;
}

------------------
-= Jazz =-

Mongo
Grunt

Posts: 50
Registered: Dec 1999

posted 01-20-2000 07:20 PM     Click Here to See the Profile for Mongo   Click Here to Email Mongo     Edit/Delete Message Reply w/Quote   
cool man. Thanks.

------------------
--Mongo

"There is no reason for any individual to have a computer in their home."
--Ken Olson, World Future Society Convention, 1977


All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Quake3World

Powered by: Ultimate Bulletin Board, Version 5.43b
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.