Raised This Month: $68 Target: $400
 17% 

[GROUP PROJECT] Help me with ideas!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pimpinjuice
Veteran Member
Join Date: May 2006
Old 05-09-2007 , 09:47   [GROUP PROJECT] Help me with ideas!
Reply With Quote #1

Hey guys,
Until I get an answer about a way to fix my TE extension's traceline native, I want to work on a new project. I had an idea for a very capable extension, kind of like fakemeta, probably not that big though. So I ask, lets list all the natives we want to see in the extension!
I'll start:
-GetCurrentWeapon(client);
-GetAngle(index);
-SetAngle(index);
-GetVelocity(index);
-SetVelocity(index);
-AngleVectors(input,output);
-EngineTime(); // probably is already here?
-SetAnimation(index);
-GetAnimation(index);

I could probably go on for a while, but I need your guys' suggestions.
pimpinjuice is offline
Send a message via AIM to pimpinjuice
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 05-09-2007 , 10:18   Re: [GROUP PROJECT] Help me with ideas!
Reply With Quote #2

GetCurrentWeapon is already a native, and i *think* GetAngle is too
Olly is offline
Send a message via MSN to Olly
BAILOPAN
Join Date: Jan 2004
Old 05-09-2007 , 10:50   Re: [GROUP PROJECT] Help me with ideas!
Reply With Quote #3

Just a short explanation of the "bintools" extension that recently got committed. This is a C++ API to let you do something like this (pseudo code, don't yell at me for not following the API exactly). Imagine that we're trying to call CBaseEntity::GiveNamedItem:

Code:
ParamInfo params[3] = { {Param_POD, 4, 0, }, {Param_POD, 4, 0}, {Param_POD, 4, 0} };

ICallWrapper *pCall = bintools->CreateThisCall(vtblIndex, NULL, params, 3);
This dynamically generates a C function which can decode an array holding 3 parameters of 4 bytes each.

To then call said function, you can do:
Code:
unsigned char stk[4*4];
*(CBaseEntity **)(stk + 0) = pEntity;
*(const char **)(stk + 4) = "weapon_ak47";
*(bool *)(stk + 8) = false;
*(bool *)(stk + 12) = false;
pCall->Execute(stk, NULL);
__________________
egg
BAILOPAN is offline
BAILOPAN
Join Date: Jan 2004
Old 05-09-2007 , 10:51   Re: [GROUP PROJECT] Help me with ideas!
Reply With Quote #4

Now, why is THAT important? Because we're working on another extension called "sdktools," which will abstract the SDK datatypes such that plugins can use the bintools extension to make C++ calls.
__________________
egg
BAILOPAN is offline
Reply


Thread Tools
Display Modes

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 07:49.


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