Raised This Month: $7 Target: $400
 1% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: jim_yang
Forum: Module Coding 02-03-2013, 07:21
Replies: 48
Views: 44,554
Posted By jim_yang
Re: New Way To Block Round End

this is more like a concept to show the way of blocking round end, giving people some inspiration to do things like this, it's not intended to be a working plugin. And Arkshine already made a plugin...
Forum: Module Coding 01-21-2013, 18:50
Replies: 6
Views: 1,718
Posted By jim_yang
Re: How to retrieve edict_t* from entvars_t

why you add RETURN_META_VALUE(MRES_IGNORED,*0); ? Is TakeDamage_Pre a meta api ?
Forum: Module Coding 01-12-2013, 00:00
Replies: 23
Views: 3,947
Posted By jim_yang
Re: Hooking FN_PutInServer

remove this

#ifndef __MAIN_H__
#define __MAIN_H__
#endif

no idea why you add this in your source file.
That means if you don't define __MAIN_H__, your source file is empty
Forum: Module Coding 01-04-2013, 04:34
Replies: 19
Views: 4,899
Posted By jim_yang
Re: [Solved] Like "Meta Mod" code from Windows to Linux

Like Arkshine told you, you may see metamod-p source code, it dynamicly edit your module's export table in memory. combine export functions of your module with the ones game dll has.
Forum: Module Coding 01-04-2013, 03:58
Replies: 9
Views: 3,834
Posted By jim_yang
Re: some errors recompiling amxx

put this in eiface.h above #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0]))

#ifdef ARRAYSIZE
#undef ARRAYSIZE
#endif

and convert your metamod file format to windows carriage mode(using...
Forum: Module Coding 12-14-2012, 21:01
Replies: 19
Views: 4,899
Posted By jim_yang
Re: [Awaiting] Like "Meta Mod" code from Windows to Linux

extern "C" __declspec(dllexport) will make your export functions name unchanged when you export your functions, but it only works with __cdecl, you see that in front of "GiveFnptrsToDll" , I add a...
Forum: Module Coding 12-09-2012, 20:49
Replies: 8
Views: 2,614
Posted By jim_yang
Re: [Question] How to create a plugin like Meta Mod?

There is no so called _Post functions. _Post is just a function postfix , remind you that this is a post function. Actually when you hook a function, pre or post to execute your own code is up to...
Forum: Off-Topic 12-09-2012, 04:31
Replies: 15
Views: 5,005
Posted By jim_yang
Re: Disable ping send

try blocking this sub "SV_EmitPings" in engine.
Forum: Module Coding 11-26-2012, 21:32
Replies: 8
Views: 2,614
Posted By jim_yang
Re: [Question] How to create a plugin like Meta Mod?

forget to say: don't bother this part

//get the engine functions table address
memcpy(&g_engfuncs, pengfuncsFromEngine, 144 * sizeof(uint32));

that's the cs1.5's engine functions table length,...
Forum: Module Coding 11-26-2012, 21:25
Replies: 8
Views: 2,614
Posted By jim_yang
Re: [Question] How to create a plugin like Meta Mod?

my way is to use the traditional metamod 1.19, list all game functions, not the dynamic way.
here we go.
prepare 3 files. "h_export.h"


#ifndef _H_EXPORT_H_
#define _H_EXPORT_H_

#include...
Forum: Module Coding 09-15-2012, 07:38
Replies: 20
Views: 8,840
Posted By jim_yang
Re: complie help~newbie

that's not totally right. uncomment the windows api does not mean you are getting rid of it. if you want to use both functions in your project, then you should worry about the redefination. If not,...
Forum: Scripting Help 07-29-2012, 10:49
Replies: 11
Views: 2,102
Posted By jim_yang
Re: hot to check LAN ip

Better to use << instead of power() function
parts_num[ 0 ] << 24 ...
Forum: Approved Plugins 07-29-2012, 10:45
Replies: 169
Views: 176,432
Posted By jim_yang
Re: Admin Free Look

write "adminfreelook" without quote to HLServer\cstrike\addons\amxmodx\configs\modules.ini
Forum: Approved Plugins 07-29-2012, 02:30
Replies: 169
Views: 176,432
Posted By jim_yang
Re: Admin Free Look

This plugin is completely rewritten by Arkshine, anyone having the issues with the old version, update it please.
The old plugin is removed. Try the new one.
Forum: Module Coding 07-29-2012, 02:15
Replies: 212
Views: 118,415
Posted By jim_yang
Re: Module: Admin Free Look

Thank you again, Arkshine. Like always.
Forum: Module Coding 07-28-2012, 08:04
Replies: 212
Views: 118,415
Posted By jim_yang
Re: Module: Admin Free Look

I'm totally out of this kind of stuff, cs, amxx, whatever. But for the sake of whom asked me for help, I decide to give it a shot to end this "free look" story.

But I'm not good at Orpheu thing,...
Forum: Module Coding 07-22-2012, 06:00
Replies: 4
Views: 1,829
Posted By jim_yang
Re: Getting edict_T* from index?

I think that's not something you should care about. The difference can be ignored totally. If you really care about it, generate native code for this instead of these two above: get the first edict...
Forum: Module Coding 07-22-2012, 04:53
Replies: 4
Views: 1,829
Posted By jim_yang
Re: Getting edict_T* from index?

actually amxx provide the entry to its functions sort of.

MF_GetPlayerEdict(int id)

more details please check amxxmodule.h
Forum: Scripting Help 03-11-2012, 11:00
Replies: 6
Views: 1,191
Posted By jim_yang
Re: Convert to fake meta

If you really care about the efficiency, don't make your server working on amxx level, at least amxx plugins level, better to code module. The best way is to ignore metamod, coding a metamod-like...
Forum: Module Coding 02-11-2012, 21:29
Replies: 5
Views: 2,370
Posted By jim_yang
Re: [HELP] Menus!

I can show you a simple example to begin with.
plain menu, some codes from amxx
PS: C-style, I personally don't like c++ class style for doing this.


bool g_Is_CSDM_Menu = false; //distinguish...
Forum: Scripting Help 02-10-2012, 00:23
Replies: 3
Views: 1,125
Posted By jim_yang
Re: str_to_float weird converting

http://en.wikipedia.org/wiki/Single_precision_floating-point_format
for the reason of the precision, some real numbers can't be accurate in this format
Forum: Module Coding 01-07-2012, 00:51
Replies: 2
Views: 1,780
Posted By jim_yang
Re: Function from SDK not working

you can't directly use CBaseEntity class in your module, because the game mod has already inherit the CBaseEntity in sdk. The one you try to make it work is not the one the game mod used. You should...
Forum: Scripting Help 01-06-2012, 05:59
Replies: 8
Views: 2,442
Posted By jim_yang
Re: [Hook]CAK47::SecondaryAttack

Yes, the function exist means it can be hooked at least, no matter it is empty or not.
But if the function is never called, then there is no effect when you hook it.
Forum: Module Coding 01-06-2012, 05:50
Replies: 2
Views: 1,264
Posted By jim_yang
Re: Got some errors on tryng to compile a code

It appears like you included util.h from hlsdk, but didn't supply the corresponding instance.
You should copy those functions to your own project.
Forum: Approved Plugins 01-02-2012, 00:40
Replies: 580
Views: 533,149
Posted By jim_yang
Re: FrostNades

you can't simply use _: to cast a float to int, or use Float: to cast an int to float, because the bit patterns of int and float are different.
example
0011 1111 1010 0000 0000 0000 0000 0000 (mem)...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 02:58.


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