.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   hacking monster_plugin (http://forums.bots-united.com/showthread.php?t=2950)

BAStumm 09-11-2004 07:29

hacking monster_plugin
 
ok so I guess I just dont get it...

I've decided I'd like to change monster_plugin in a way that allows for team based monsters. To just test things for now I've changed barney to be assigned to v.team = 1. This works, I see his v.team assignment when I query using pmtools...

so next step is to hack monsters.cpp in the BestVisibleEnemy() function to ignore players on same team as the monsters v.team right?

ok so here is a my modified chunk of that function...

Code:

  edict_t *CMBaseMonster :: BestVisibleEnemy ( void )
  {
          int                                        iNearest;
          int                                        iDist;
          int                                        iBestRelationship;
    edict_t *pReturn;
    edict_t *pEnt;
    int edictList_index = 0;
                 
                  iNearest = 8192;// so first visible entity will become the closest.
   
                  iBestRelationship = R_NO;
           
    pReturn = NULL;
 
    while (edictList_index < m_edictList_count)
                  {
            pEnt = m_edictList[edictList_index];
   
            if ( UTIL_IsPlayer(pEnt) )
            {
                  // it's a player...
 
                            // testing
                            printf("*** MONSTER TEAM IS  %i\n",pev->team);
                          printf("*** MONSTER'S ENEMY TEAM IS %i\n",pEnt->v.team);
 
                          // lets see if this monster shares same team as player if team based mod...
                          if ( ( pev->team != pEnt->v.team ) || ( pEnt->v.team == 0 ) )
                            {
                                          iDist = ( pEnt->v.origin - pev->origin ).Length();
   
                                          if ( iDist <= iNearest )
                                              { 
                                                          iNearest = iDist;
                                                          iBestRelationship = R_NM; // player is always nemsis
                                                          pReturn = pEnt;
                                              }
                            } // end team based checking...
            }
            else if (pEnt->v.euser4 != NULL)

You can see I am printing the monster team and player team to the console, that part works just fine... Just after that I have an if statement to determine if this enemy is actually an enemy (not on my team and not on no team) and it appears that it is THAT if statement that is causing my server to crash. What the heck am I doing wrong?

btw that testing console output does work...

*** MONSTER TEAM IS 1
*** MONSTER'S ENEMY TEAM IS 2

right now I have barneys team statically set to 1... I see no errors before crash, I dont even get that MONSTER TEAM IS part before crash unless I comment the if statement I added... I dont get it. pulling out hair here and know its something simple/stupid

BAStumm 09-11-2004 07:36

Re: hacking monster_plugin
 
oh and server dont crash if I dont spawn any barneys if that helps...

sPlOrYgOn 09-11-2004 07:36

Re: hacking monster_plugin
 
did you check if pev or pEnt is NULL?
[edit]
or maybe a memory error from somewhere else...
[/edit]

BAStumm 09-11-2004 07:50

Re: hacking monster_plugin
 
first off keep in mind that I am a php dev and a newbie C hacker...

but

printf("*** MONSTER TEAM IS %i\n",pev->team);
printf(
"*** MONSTER'S ENEMY TEAM IS %i\n",pEnt->v.team);

these return data...

sPlOrYgOn 09-11-2004 07:56

Re: hacking monster_plugin
 
comment out the part of the code that is causing the crashing and see if it still crashes..

BAStumm 09-11-2004 08:00

Re: hacking monster_plugin
 
yeah did that. see code in first post? If I comment out the if statement all is fine... or if I dont comment it and dont spawn any barneys its fine so I know its that if statement...


// lets see if this monster shares same team as player if team based mod...
if ( ( pev->team != pEnt->v.team ) || ( pEnt->v.team == 0 ) )
{



BAStumm 09-11-2004 08:17

Re: hacking monster_plugin
 
weird... this code is NOT crashing...

Code:

          if ( UTIL_IsPlayer(pEnt) )
          {
                  // it's a player...
 
 
                          // lets see if this monster shares same team as player if team based mod...
                          if((pev->team != pEnt->v.team) || (pEnt->v.team == 0))
                          {
                                  // testing
                                  printf("*** MONSTER TEAM IS  %i\n",pev->team);
                                  printf("*** MONSTER'S ENEMY TEAM IS  %i\n",pEnt->v.team);
                          }
 
                                            iDist = ( pEnt->v.origin - pev->origin ).Length();
 
                                            if ( iDist <= iNearest )
                                            {
                                                            iNearest = iDist;
                                                            iBestRelationship = R_NM; // player is always nemsis
                                                            pReturn = pEnt;
                                            }
          }


stefanhendriks 09-11-2004 18:58

Re: hacking monster_plugin
 
i am not entirely sure why it crashes, though something tells me that somehow the information you try to print is not initialized properly.

Try this, first try to output the first sentence, but comment out the second one. Then try the second one only and comment out the first one. DO NOT change team data or whatever, simply try to print out the data.

If that crashes, it means the data is not initialized. Make sure it IS.

The piece of code in the latest post does a check on this data, thats why it is probably not crashing. Though i wonder if it works like you want it to work?

Pierre-Marie Baty 09-11-2004 21:36

Re: hacking monster_plugin
 
shouldn't that be
Code:

                                printf("*** MONSTER TEAM IS %d\n",pev->team);
                                printf("*** MONSTER'S ENEMY TEAM IS %d\n",pEnt->v.team);

instead ?

BAStumm 09-11-2004 22:35

Re: hacking monster_plugin
 
I was under the impression that d and i are both int, but none the less that portion of the test code is working correctly...

BAStumm 09-11-2004 23:52

Re: hacking monster_plugin
 
nm took a diff approach and have something working now

ornery fiddle 27-07-2006 21:32

Re: hacking monster_plugin
 
Hello
not sure if this is where I go, I`d like to get the monsters to be TEAM SPECIFIC

I had the "plugin_blatt_monsters3.5" in my listen server & could use "targetteam/1" or "targetteam/2" & they would only attack enemy team.Then I seen that "monster_plug_expension_1.2" and put that in.{I really like the monsters in that}
but I can`t do the specific team thing,is there a way to do it? have the newest
AdminMod
Metamod v1.17.3
monster v3.00.00
chickenmod-1.0.5.1
stripper2 v1.00.00
FoxBot v698
WinXP home with service pk2 Play TFC. If anyone could help me I`d appreciate it.
If I have to I will go back to the 3.5 as a last resort.
Thank you, Mack

BAStumm 28-07-2006 17:46

Re: hacking monster_plugin
 
see this:

http://forums.bots-united.com/showth...monster+plugin

Best I can do for ya, I've not worked on monster plugin in ages and probably wont be doing any future work either. You might do a little more searchin round too as someone could have ran with that project since I made that post back in 2004.

ornery fiddle 28-07-2006 21:24

Re: hacking monster_plugin
 
OK,
Thanks for the reply, I will see if I can hunt anything else up
I can always go back to the 3.5, but haven`t decided yet
THANKS AGAIN.
Mack:detective:

VoivoD 27-11-2006 15:13

Re: hacking monster_plugin
 
anyone know what is needed to compile monster plugin ?

ive tried vc++ 2005 + psdk and ive got this:
Code:

[small]

Creating command line "cl.exe @"c:\Documents and Settings\VoivoDian\Moje dokumenty\Visual Studio 2005\Projects\monster_plugin\dlls\Debug\RSP00000338241088.rsp" /nologo /errorReport:prompt"
Output Window
                  Compiling...
agrunt.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
AI_BaseNPC_Schedule.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
animating.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
animation.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\animation.cpp(166) : warning C4996: 'stricmp' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(213) : see declaration of 'stricmp'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\animation.cpp(331) : error C2065: 'i' : undeclared identifier
apache.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(56) : error C3867: 'CMApache::StartupUse': function call missing argument list; use '&CMApache::StartupUse' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(60) : error C3867: 'CMApache::HuntThink': function call missing argument list; use '&CMApache::HuntThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(61) : error C3867: 'CMApache::FlyTouch': function call missing argument list; use '&CMApache::FlyTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(125) : error C3867: 'CMApache::HuntThink': function call missing argument list; use '&CMApache::HuntThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(126) : error C3867: 'CMApache::FlyTouch': function call missing argument list; use '&CMApache::FlyTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(139) : error C3867: 'CMApache::DyingThink': function call missing argument list; use '&CMApache::DyingThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(140) : error C3867: 'CMApache::CrashTouch': function call missing argument list; use '&CMApache::CrashTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(349) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(902) : error C3867: 'CMApacheHVR::IgniteThink': function call missing argument list; use '&CMApacheHVR::IgniteThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(903) : error C3867: 'CMGrenade::ExplodeTouch': function call missing argument list; use '&CMGrenade::ExplodeTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(949) : error C3867: 'CMApacheHVR::AccelerateThink': function call missing argument list; use '&CMApacheHVR::AccelerateThink' to create a pointer to member
barney.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
bigmomma.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\bigmomma.cpp(1144) : error C3867: 'CMBMortar::Animate': function call missing argument list; use '&CMBMortar::Animate' to create a pointer to member
bullsquid.cpp
...
[/small]

ive tried mingw ~ like in tutorial to compile podbot and got this:
Code:

VoivoDian@VOIVOD /d/work/compile/mingw/proj/monster_plugin/monster_plugin/dlls
$ gcc -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m386 -O2 -w -I. -I../engine -I
../common -I../pm_shared -I../../metamod -c AI_BaseNPC_Schedule.cpp -o AI_BaseN
PC_Schedule.o
In file included from weapons.h:18,
from cmbasemonster.h:322,
from AI_BaseNPC_Schedule.cpp:22:
effects.h: In member function `void CMSprite::AnimateAndDie(float)':
effects.h:82: error: invalid static_cast from type `<unknown type>' to type `void (CMBaseEntity::*)()'
effects.h: In member function `void CMBeam::LiveForTime(float)':
effects.h:168: error: invalid static_cast from type `<unknown type>' to type `void (CMBaseEntity::*)()'
AI_BaseNPC_Schedule.cpp: At global scope:
AI_BaseNPC_Schedule.cpp:1392: sorry, unimplemented: inter-module optimisations not implemented yet
AI_BaseNPC_Schedule.cpp:1393:2: mtune=i386: No such file or directory
`-m386' is deprecated. Use `-march=i386' or `-mtune=i386' instead.

anyone ?

jeefo 28-11-2006 19:21

Re: hacking monster_plugin
 
for the VC 2005...:

On all errors such as:
Code:

c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(949) : error C3867: 'CMApacheHVR::AccelerateThink': function call missing argument list; use '&CMApacheHVR::AccelerateThink' to create a pointer to member
change such lines from:
Code:

SetThink( AccelerateThink );
to
Code:

SetThink( CApache::AccelerateThink );
and so on...

but don't forget to change CApache to the class name this functions called from...

VoivoD 28-11-2006 21:18

Re: hacking monster_plugin
 
THX, i will try this, hope im not going to make bigger mess in the code :p do i should enable optimizations in vs++ 2005?

VoivoD 29-11-2006 17:34

Re: hacking monster_plugin
 
still got this :(
Code:

Compiling...
agrunt.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
AI_BaseNPC_Schedule.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
animation.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\animation.cpp(166) : warning C4996: 'stricmp' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(213) : see declaration of 'stricmp'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\animation.cpp(331) : error C2065: 'i' : undeclared identifier
apache.cpp
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\engine\eiface.h(383) : warning C4005: 'ARRAYSIZE' : macro redefinition
        c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(82) : error C3867: 'CMSprite::AnimateUntilDead': function call missing argument list; use '&CMSprite::AnimateUntilDead' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\effects.h(168) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(56) : error C3867: 'CMApache::StartupUse': function call missing argument list; use '&CMApache::StartupUse' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(60) : error C3867: 'CMApache::HuntThink': function call missing argument list; use '&CMApache::HuntThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(61) : error C3867: 'CMApache::FlyTouch': function call missing argument list; use '&CMApache::FlyTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(125) : error C3867: 'CMApache::HuntThink': function call missing argument list; use '&CMApache::HuntThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(126) : error C3867: 'CMApache::FlyTouch': function call missing argument list; use '&CMApache::FlyTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(139) : error C3867: 'CMApache::DyingThink': function call missing argument list; use '&CMApache::DyingThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(140) : error C3867: 'CMApache::CrashTouch': function call missing argument list; use '&CMApache::CrashTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(349) : error C3867: 'CMBaseEntity::SUB_Remove': function call missing argument list; use '&CMBaseEntity::SUB_Remove' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(902) : error C3867: 'CMApacheHVR::IgniteThink': function call missing argument list; use '&CMApacheHVR::IgniteThink' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(903) : error C3867: 'CMGrenade::ExplodeTouch': function call missing argument list; use '&CMGrenade::ExplodeTouch' to create a pointer to member
c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(949) : error C3867: 'CMApacheHVR::AccelerateThink': function call missing argument list; use '&CMApacheHVR::AccelerateThink' to create a pointer to member


jeefo 30-11-2006 18:10

Re: hacking monster_plugin
 
first goto extdll.h

and after ifndef/defined, add code
Code:

#pragma warning (disable : 4996)
for this:
Code:

c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\animation.cpp(331) : error C2065: 'i' : undeclared identifier
apache.cpp

do something like that:
Code:

for (int i = 0; i < gpGlobals->maxClients; i++)

change to:

int i = 0;
for (; i < gpGlobals->maxClients; i++)

for other errors like:
Code:

c:\documents and settings\voivodian\moje dokumenty\visual studio 2005\projects\monster_plugin\dlls\apache.cpp(139) : error C3867: 'CMApache::DyingThink': function call missing argument list; use '&CMApache::DyingThink' to create a pointer to member
change for all errors:
Code:

from
Function
to
Class::Function

f.e.
DyingThink
to
CApache::DyingThink
etc


person135 30-11-2006 22:12

Re: hacking monster_plugin
 
can you give me the finished version of the plugin when you guys are done?

VoivoD 30-11-2006 23:11

Re: hacking monster_plugin
 
k, will try this later, couse now im drunk like hell :D

VoivoD 01-12-2006 05:51

Re: hacking monster_plugin
 
thx strelomet, going to mess with the code laterz


All times are GMT +2. The time now is 03:50.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.