Raised This Month: $ Target: $400
 0% 

Solved Orpheu & WeaponBox


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-15-2018 , 06:09   Re: Orpheu & WeaponBox
Reply With Quote #1

Quote:
And that's a lot easier, I'm not thinking of making signatures at this time, there's plenty in the forum. So basically I get to know that CWeaponBox:Kill is a non-virtual function and requires a signature from this https://github.com/s1lentq/ReGameDLL...pons.cpp#L1583
You should look in the *.h file, not *.cpp. https://github.com/s1lentq/ReGameDLL...weapons.h#L466

Quote:
Is every single game function inside these files? Does it mean I can find any function that I'm using and see whether it's virtual or not by using ReGameDLL?
In most cases yes. The RegameDLL guys did add a lot of things and the code will not mimic the original valve code 100% anymore. But it should be all under some #ifndef REGAMEDLL_API or #ifndef REGAMEDLL. Just ignore this parts of the code and you should be good.
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-15-2018 , 06:37   Re: Orpheu & WeaponBox
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
You should look in the *.h file, not *.cpp. https://github.com/s1lentq/ReGameDLL...weapons.h#L466



In most cases yes. The RegameDLL guys did add a lot of things and the code will not mimic the original valve code 100% anymore. But it should be all under some #ifndef REGAMEDLL_API or #ifndef REGAMEDLL. Just ignore this parts of the code and you should be good.
PHP Code:
virtual void Killed(entvars_t *pevAttackerint iGib); 
but I have it in orpheu/functions/CWeaponBox !?

Doesn't being a virtual function mean being in orpheu/virtualFunctions ?
__________________

Last edited by edon1337; 07-15-2018 at 06:38.
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-15-2018 , 07:17   Re: Orpheu & WeaponBox
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
PHP Code:
virtual void Killed(entvars_t *pevAttackerint iGib); 
but I have it in orpheu/functions/CWeaponBox !?

Doesn't being a virtual function mean being in orpheu/virtualFunctions ?
You are looking at the wrong class. This one is from class CGrenade, but you want CWeaponBox class.
__________________

Last edited by HamletEagle; 07-15-2018 at 07:18.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-15-2018 , 07:38   Re: Orpheu & WeaponBox
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
You are looking at the wrong class. This one is from class CGrenade, but you want CWeaponBox class.
Ah, you're right
PHP Code:
class CWeaponBox: public CBaseEntity
void EXPORT Kill
(); 
Thanks a bunch!
__________________
edon1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode