AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [TUT] Fakemeta General Usage (https://forums.alliedmods.net/showthread.php?t=40211)

Hawk552 10-16-2006 22:07

Re: Fakemeta General Usage
 
Quote:

Originally Posted by k007 (Post 391934)
im not sure if this is the right place but is it possible somehow register a touch like in engine or something

Code:

register_forward(FM_Touch,"ForwardTouch")

k007 10-16-2006 22:13

Re: Fakemeta General Usage
 
then how would you get the toucher and the ent thats is being touched?

P34nut 10-17-2006 03:30

Re: Fakemeta General Usage
 
Code:

public forwardTouch(ptr, ptd) {
// get classname or something
}


Nostrodamous 10-31-2006 01:35

Re: Fakemeta General Usage
 
can you show us how to set and get ammo with fakemeta ? I dont see any pev ammo functions. how would it be done ? please & thank you :)

Zenith77 10-31-2006 11:49

Re: Fakemeta General Usage
 
Quote:

Originally Posted by Nostrodamous (Post 397523)
can you show us how to set and get ammo with fakemeta ? I dont see any pev ammo functions. how would it be done ? please & thank you :)

Ammo can be stored many ways (with pev), or like with CS I believe it is stored in some private data section. You can look at the CS Module source code and find out.

mateo10 12-13-2006 13:30

Re: Fakemeta General Usage
 
How do I use FM_SetModel ?

The Specialist 12-13-2006 16:39

Re: Fakemeta General Usage
 
Code:
    register_forward(FM_SetModel,"HandlingFunction");

mateo10 12-14-2006 04:02

Re: Fakemeta General Usage
 
If I have
Code:
public switch_playermodel(id, const model[]) {     new team[32]     get_user_team(id, team, 31)         if(equal(team, "TERRORIST")) {         cs_set_user_model(id, g_PlayerModel)         set_user_rendering(id, kRenderFxGlowShell, 155, 0, 0, kRenderGlow, 155)     } else if(equal(team, "COUNTER_TERRORIST")) {         cs_set_user_model(id, g_PlayerModel)         set_user_rendering(id, kRenderFxGlowShell, 0, 0, 155, kRenderGlow, 155)     } }
How do I change the cs_set_user_model to fakemeta's version?

Rolnaaba 12-14-2006 10:48

Re: Fakemeta General Usage
 
I believe (correct me please If I am wrong Hawk552):
Code:
public switch_playermodel(id, const model[]) {     new team[32]     get_user_team(id, team, 31)         if(equal(team, "TERRORIST")) {         engfunc(EngFunc_SetModel,id,g_PlayerModel);         set_user_rendering(id, kRenderFxGlowShell, 155, 0, 0, kRenderGlow, 155)         return FMRES_SUPERCEDE;     } else if(equal(team, "COUNTER_TERRORIST")) {         engfunc(EngFunc_SetModel,id,g_PlayerModel);         set_user_rendering(id, kRenderFxGlowShell, 0, 0, 155, kRenderGlow, 155)         return FMRES_SUPERCEDE;     }     return FMRES_IGNORED }

Hawk552 12-14-2006 16:05

Re: Fakemeta General Usage
 
That won't work in CS.

You basically have to include cstrike and use cs_set_user_model.

There's probably some pdata you can set that I'm not aware of, but it's not worth it. Just use cstrike for what it's made to do.


All times are GMT -4. The time now is 10:40.

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