Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Star Trek Voyager: Elite Force
Category: Star Trek Voyager: Elite Force MOD Support
Mapping, modeling, scripting, etc. questions, comments and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: I need help!
oddione~rb
General Member
Since: Dec 23, 2006
Posts: 14
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: Star Trek Voyager: Elite Force MOD Support
Posted: Tuesday, Feb. 24, 2004 09:54 pm
well while we are at it, I have another problem. I found this cloaking code for quake 3  but for some reason it wont work in ef:

Add this right down at the end of the g_cmds.c file, near around the god mode command:


   else if (Q_stricmp (cmd, cloak) == 0)             //cloak code
   {
       char    *msg;

       if ( !CheatsOk( ent ) ) {
               return;
       }
       ent->flags ^= FL_CLOAK;

       if (!(ent->flags & FL_CLOAK))
       {
                       msg = Cloaking OFF\n;
                       ent->client->ps.powerups[PW_INVIS] = level.time;
       }
       else
       {
                       msg = Cloaking ON\n;
                       ent->client->ps.powerups[PW_INVIS] = level.time + 1000000000;
       }
               trap_SendServerCommand( ent-g_entities, va(print \s\, msg));

   }  //end cloak code


Next, add a flag to g_local.h after FL_NOHUMANS, I did it like this


// gentity->flags
#define FL_GODMODE                      0x00000010
#define FL_NOTARGET                     0x00000020
#define FL_TEAMSLAVE                    0x00000400      // not the first on the team
#define FL_NO_KNOCKBACK                 0x00000800
#define FL_DROPPED_ITEM                 0x00001000
#define FL_NO_BOTS                      0x00002000      // spawn point not for bot use
#define FL_NO_HUMANS                    0x00004000      // spawn point just for bots
#define FL_CLOAK                        0x00010000  // NEW CODE HERE!!!


anyone know why it wont work??
Share |
skinner~rb
General Member
Since: Dec 23, 2006
Posts: 1241
Last: Dec 23, 2006
[view latest posts]
Level 8
Category: Star Trek Voyager: Elite Force MOD Support
Posted: Tuesday, Feb. 24, 2004 09:56 pm
does it not compile,, or what? or does it just not function
Share |
oddione~rb
General Member
Since: Dec 23, 2006
Posts: 14
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: Star Trek Voyager: Elite Force MOD Support
Posted: Tuesday, Feb. 24, 2004 09:57 pm
well it wont compile and there are alot of errors.
Share |
skinner~rb
General Member
Since: Dec 23, 2006
Posts: 1241
Last: Dec 23, 2006
[view latest posts]
Level 8
Category: Star Trek Voyager: Elite Force MOD Support
Posted: Tuesday, Feb. 24, 2004 10:02 pm
Code Sample

  else if (Q_stricmp (cmd, "cloak") == 0)             //cloak code
  {
      char    *msg;

      if ( !CheatsOk( ent ) ) {
              return;
      }
      ent->flags ^= FL_CLOAK;

      if (!(ent->flags & FL_CLOAK))
      {
                      msg = "Cloaking OFF\n";
                      ent->client->ps.powerups[PW_INVIS] = level.time;
      }
      else
      {
                      msg = "Cloaking ON\n";
                      ent->client->ps.powerups[PW_INVIS] = level.time + 1000000000;
      }
              trap_SendServerCommand( ent-g_entities, va("print %s\n", msg));

  }  //end cloak code


that should fix a bunch of errors
Share |
oddione~rb
General Member
Since: Dec 23, 2006
Posts: 14
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: Star Trek Voyager: Elite Force MOD Support
Posted: Tuesday, Feb. 24, 2004 10:03 pm
ok thx man i'll try
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Star Trek Voyager: Elite Force : Star Trek Voyager: Elite Force MOD Support

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»