Raised This Month: $12 Target: $400
 3% 

[DUDE] with forwards fakemeta to other module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 03-05-2014 , 13:57   [DUDE] with forwards fakemeta to other module
Reply With Quote #1

hi i have a dude, other module have this forwards?

FM_PrecacheSound
FM_SetModel
FM_GetGameDescription
FM_TraceHull
FM_TraceLine
FM_ClientKill
FM_EmitSound
FM_SetClientKeyValue
FM_AddToFullPack
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
twix_p
Member
Join Date: Jul 2011
Old 03-05-2014 , 14:09   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #2

I was needed almost same long time ago and found nothing. Better to make own module with forwards that you need.

https://code.google.com/p/vdfparser/...config.h?r=136
twix_p is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-05-2014 , 15:05   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #3

Better to stick with fakemeta.
The only forward avalaible with engine module is client_kill
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 03-05-2014 , 15:49   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #4

okay, thanks connor and twix :/

how i can change this ?
PHP Code:
static weapon_ent
    weapon_ent 
fm_cs_get_current_weapon_ent(id)
    if (
pev_valid(weapon_ent)) replace_weapon_models(idcs_get_weapon_id(weapon_ent))

stock fm_cs_get_current_weapon_ent(id)
{
    if (
pev_valid(id) != PDATA_SAFE)
        return -
1;
    
    return 
get_pdata_cbase(idOFFSET_ACTIVE_ITEMOFFSET_LINUX);

and this: dllfunc(DLLFunc_Use
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 03-05-2014 at 18:09.
Roccoxx is offline
Send a message via MSN to Roccoxx
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-06-2014 , 01:27   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #5

1. This is the most reliable method.
2. force_use, but this is exactly the same

I don't understand why you try to remove fakemeta, it is a good module.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
twix_p
Member
Join Date: Jul 2011
Old 03-06-2014 , 02:42   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #6

Quote:
Originally Posted by Roccoxx View Post
okay, thanks connor and twix :/

how i can change this ?
PHP Code:
static weapon_ent
    weapon_ent 
fm_cs_get_current_weapon_ent(id)
    if (
pev_valid(weapon_ent)) replace_weapon_models(idcs_get_weapon_id(weapon_ent))

stock fm_cs_get_current_weapon_ent(id)
{
    if (
pev_valid(id) != PDATA_SAFE)
        return -
1;
    
    return 
get_pdata_cbase(idOFFSET_ACTIVE_ITEMOFFSET_LINUX);

and this: dllfunc(DLLFunc_Use
To replace weapons models you can use a more efficient way.

PHP Code:
public plugin_init( )
    
register_event"CurWeapon""EventCurWeapon""be""1=1" );

new 
g_iWeapon33 ];
public 
EventCurWeaponiPlayer )
{
    
g_iWeaponiPlayer ] = read_data);
    if( 
g_iWeaponiPlayer ] == CSW_KNIFE )
        
entity_set_stringiPlayerEV_SZ_viewmodelKNIFE_MODEL ), entity_set_stringiPlayerEV_SZ_weaponmodelKNIFE_MODEL);

Anyway, often its very hard or imposible to remove fakemeta without knowledges about module codding.

Last edited by twix_p; 03-06-2014 at 02:50.
twix_p is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-06-2014 , 04:12   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #7

Quote:
Originally Posted by twix_p View Post
To replace weapons models you can use a more efficient way.

PHP Code:
public plugin_init( )
    
register_event"CurWeapon""EventCurWeapon""be""1=1" );

new 
g_iWeapon33 ];
public 
EventCurWeaponiPlayer )
{
    
g_iWeaponiPlayer ] = read_data);
    if( 
g_iWeaponiPlayer ] == CSW_KNIFE )
        
entity_set_stringiPlayerEV_SZ_viewmodelKNIFE_MODEL ), entity_set_stringiPlayerEV_SZ_weaponmodelKNIFE_MODEL);

That is the most inefficient method for changing weapon models. CurWeapon event is sent every time a player's clip ammo changes, that is; every time he fires a bullet, reloads, and changes weapon.
Why would you not filter the event for knife only?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 03-06-2014 , 04:59   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #8

Why not switch to the Hamsandwich anyway?
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-06-2014 , 05:34   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #9

Quote:
Originally Posted by NiHiLaNTh View Post
Why not switch to the Hamsandwich anyway?
He's already using Hamsandwich to return the entity index.
Or have I misunderstood you?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 03-06-2014 , 06:03   Re: [DUDE] with forwards fakemeta to other module
Reply With Quote #10

Quote:
Originally Posted by hornet View Post
He's already using Hamsandwich to return the entity index.
Or have I misunderstood you?
He meant, why not use Ham_Item_Deploy.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 04:52.


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