A Tour of Duty.. oh man that was a great show :)
Good luck with the MOD, you have at least one rabid fan :)


----- Original Message -----
From: "Commando" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 10.39
Subject: Re: [hlcoders] Grapple Hook problems


> Dustin,
>
> You should probably start with a good book on C++ as most of these are
> fairly simple errors.  You haven't added the new methods and member
> variables (FireHook, m_fHookButton, etc) to the header that defines
> CBasePlayer.  I looked at the tutorial and it is very incomplete.  The
> author even states;
>
> "I know you now wondering why i didn't just put that in a seperate file.
> The Answer is simple, for some strange reason(that i might have been able
> to figgure out if i wasn't so tired) it just wouldn't work."
>
> Which makes me suspicious that he is also a bit weak in his C++
> skills.  Remember, just because a tutorial is posted on the Internet, it
> isn't necessarily correct, complete or even safe.  They often require some
> additional work than just cut and paste.  I am not going to go through it
> line by line what you need to do, but look at each error and for each
> undefined member, figure out what their definitions should be and add them
> to CBasePlayer in player.h.  To start you off, here are the first two to
> add to player.h in the class definition;
>
> void FireHook ( void ) ;
> BOOL m_fHookButton;
>
> Rob 'Commando' Prouse
> Tour of Duty Mod
> http://www.tourofdutymod.com
>
> At 12:03 PM 20/11/2001 -0600, you wrote:
> >Hey, im following a tutorial
> >
>
><http://www.planethalflife.com/hlprogramming/old/tuts/tut_offhandgrapple.ht
m>http://www.planethalflife.com/hlprogramming/old/tuts/tut_offhandgrapple.ht
m
> >
> >and iv checked the code more than once.. and iv got everything
> >like its post to be from the tutorial ..
> >
> >can someone tell me a better way to make a hook or how to
> >fix these errors?
> >
> >--------------------Configuration: mp - Win32 Profile--------------------
> >Compiling...
> >airtank.cpp
> >beamcylindergrenade.cpp
> >blaster.cpp
> >client.cpp
> >C:\My Documents\MyDLL\SourceCode\dlls\client.cpp(385) : error C2039:
> >'FireHook' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\client.cpp(387) : error C2039:
> >'m_fHookButton' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\client.cpp(392) : error C2039:
> >'m_fHookButton' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >crossbow.cpp
> >crowbar.cpp
> >egon.cpp
> >Energy.cpp
> >froggun.cpp
> >func_tank.cpp
> >gamerules.cpp
> >gauss.cpp
> >h_cycler.cpp
> >handgrenade.cpp
> >healthkit.cpp
> >hl_wpn_glock.cpp
> >hornetgun.cpp
> >items.cpp
> >maprules.cpp
> >mp5.cpp
> >multiplay_gamerules.cpp
> >NightVision.cpp
> >Nuke.cpp
> >player.cpp
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4948) : error C2039:
> >'m_fHookInWall' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4949) : error C2039:
> >'m_fActiveHook' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4963) : error C2039:
> >'m_fHookButton' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4965) : error C2039:
> >'m_fActiveHook' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4966) : error C2039:
> >'m_fHookInWall' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(4982) : error C2039:
> >'m_fHookButton' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5008) : error C2039:
> >'m_fHookInWall' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5014) : error C2039:
> >'m_vVecDirHookMove' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5037) : error C2039:
> >'FireHook' : is not a member of 'CBasePlayer'
> >         C:\My Documents\MyDLL\SourceCode\dlls\player.h(71) : see
> > declaration of 'CBasePlayer'
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5043) : error C2065:
> >'m_iWeaponVolume' : undeclared identifier
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5049) : error C2227:
left
> >of '->v_angle' must point to class/struct/union
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5049) : error C2227:
left
> >of '->punchangle' must point to class/struct/union
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5053) : error C2065:
> >'GetGunPosition' : undeclared identifier
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5053) : error C2677:
> >binary '-' : no global operator defined which takes type 'class Vector'
> >(or there is no acceptable conversion)
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5061) : error C2065:
> >'edict' : undeclared identifier
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5061) : error C2440: '='
> >: cannot convert from 'int' to 'struct edict_s *'
> >         Conversion from integral type to pointer type requires
> > reinterpret_cast, C-style cast or function-style cast
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5062) : error C2673:
> >'FireHook' : global functions do not have 'this' pointers
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5067) : error C2679:
> >binary '=' : no operator defined which takes a right-hand operand of type
> >'class Vector' (or there is no acceptable conversion)
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5069) : error C2227:
left
> >of '->punchangle' must point to class/struct/union
> >C:\My Documents\MyDLL\SourceCode\dlls\player.cpp(5069) : error C2228:
left
> >of '.x' must have class/struct/union type
> >python.cpp
> >rpg.cpp
> >satchel.cpp
> >shotgun.cpp
> >singleplay_gamerules.cpp
> >SmokeGrenade.cpp
> >sound.cpp
> >squeakgrenade.cpp
> >stealthsuit.cpp
> >teamplay_gamerules.cpp
> >triggers.cpp
> >tripmine.cpp
> >util.cpp
> >weapons.cpp
> >world.cpp
> >Error executing cl.exe.
> >
> >mp.dll - 23 error(s), 0 warning(s)
> >
> >
> >_________________________________________
> >Duke Nukem
> >ICQ#:138594463
> >Current ICQ status: 3a460ff.jpg
> >
> >SMS: (Send an SMS message to my ICQ): +2783142138594463
> >More ways to contact me:
>
><http://wwp.icq.com/138594463>http://wwp.icq.com/<http://wwp.icq.com/138594
463>138594463
> >_________________________________________
> >
>



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to