Raised This Month: $ Target: $400
 0% 

FakeMeda and TS help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-23-2007 , 23:51   FakeMeda and TS help
Reply With Quote #1

How can I check if a user is lying down in the specialist.

Code:
if ( (pev(id,pev_button) & IN_LAYINGPOSITION??))
{
		client_print(id, print_chat, "My Text")
		return PLUGIN_HANDLED
}
now IN_LAYINGPOSITION is not real do they have one? I looked and couldn't find them.
Styles is offline
Send a message via AIM to Styles
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-24-2007 , 03:10   Re: FakeMeda and TS help
Reply With Quote #2

No, it's not real, and you won't find it that way.

In dod, the value is inside pev_iuser3. If he's proned (laying), it's 1 - if not, it's 0.

You can try searching the forums for ts laying or ts prone or ts stocks to find if anyone has already made something to solve this. If the stock doesn't exist, you can figure out which pev value it is by using FakeMeta Tools (in the plugins forum) and test each of the iuser and fuser values. Shouldn't be too hard.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-24-2007 , 13:57   Re: FakeMeda and TS help
Reply With Quote #3

So your saying do something like:

Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
	register_forward(FM_PlayerPreThink, "forward_prethink");
}

public forward_prethink(id)
{
	client_print(id, print_chat, "[AMXX] The action is %s", pev(id, pev_iuser3))
}
yeah I know I could have made something like /checkaction or some bs but I would rather it spam so I can see every second whats going on.

But yeah something like that and let it print out what that is and what its doing?

I'm just now starting to use FakeMeta and Engine Commands like velocity so I'm trying to learn as much and have as much fun with it as possible.
Styles is offline
Send a message via AIM to Styles
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-24-2007 , 15:04   Re: FakeMeda and TS help
Reply With Quote #4

Yes, that's correct. Or you can use a global 33set variable and only echo it when it changes for that client.

if pronestate != g_pronestate[id] { echo..
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-24-2007 , 19:05   Re: FakeMeda and TS help
Reply With Quote #5

it only returns 0 :- (
Styles is offline
Send a message via AIM to Styles
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-24-2007 , 20:54   Re: FakeMeda and TS help
Reply With Quote #6

That's because it probably doesn't use the same variable as DoD. Try different variables...iuser1 through 4...fuser1 through 4, etc.


Worst comes to worst, you can check pev_size. It is smaller when proned.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 09-26-2007 , 13:04   Re: FakeMeda and TS help
Reply With Quote #7

Check for their animation. If they are prone, they will be in their animation.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-26-2007 , 16:09   Re: FakeMeda and TS help
Reply With Quote #8

That provides problems because there are more than one animation for that. There is "going prone," "proned," "prone crawling," "prone getting up," etc.

It's a lot simpler to check the size, which is consistent whenever they are proned.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 09-26-2007 , 16:21   Re: FakeMeda and TS help
Reply With Quote #9

It would work for TS, since there is no going prone, crawling or getting up animations, there is only diving which is also used for laying on the ground.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 09-27-2007 , 05:07   Re: FakeMeda and TS help
Reply With Quote #10

but there is also rolling
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
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 16:15.


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