Raised This Month: $ Target: $400
 0% 

Pallets with Bags


Post New Thread Reply   
 
Thread Tools Display Modes
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 10:11   Re: Pallets with Bags
Reply With Quote #11

Quote:
Originally Posted by hjkwe654 View Post
.sma ?
Sorry the site i think is momentan with problems . I can't upload the sma
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
manchimocyrus
Member
Join Date: Nov 2006
Location: Vitan
Old 03-23-2007 , 10:14   Re: Pallets with Bags
Reply With Quote #12

samurai16 the .sma??????????????
manchimocyrus is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 10:17   Re: Pallets with Bags
Reply With Quote #13

Quote:
Originally Posted by manchimocyrus View Post
samurai16 the .sma??????????????
Sorry the site i think is momentan with problems . I can't upload the sma

Last edited by SAMURAI16; 03-23-2007 at 11:48.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 12:12   Re: Pallets with Bags
Reply With Quote #14

Quote:
Originally Posted by VEN View Post

Of course it's good that you've been informed about this stock but unfortunately you haven't been informed how to use it. I.e.
Code:
hull = pev(id, pev_flags) & HULL_HUMAN

Do you realise what you are doing here? Please tell me.
I used that to check for the free spot. It's the first time when i used . I saw in hlds_const HULL defines and i decided to use HULL_HUMAN. I tested on server, and seems to can't place models on air.
Please tell a good method to use it
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
VEN
Veteran Member
Join Date: Jan 2005
Old 03-23-2007 , 12:16   Re: Pallets with Bags
Reply With Quote #15

Quote:
I saw in hlds_const HULL defines and i decided to use HULL_HUMAN
Quote:
Originally Posted by hlsdk_const.inc
// The hullnumber paramater of EngFunc_TraceHull, EngFunc_TraceModel and DLLFunc_GetHullBounds
I think you didn't get my question. Do you understand what you are doing below?
Quote:
hull = pev(id, pev_flags) & HULL_HUMAN
VEN is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 12:38   Re: Pallets with Bags
Reply With Quote #16

not verry sure . Can explain me with high details ?
I used that way, because that comes on my brain, i tested an worked anyway
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
VEN
Veteran Member
Join Date: Jan 2005
Old 03-23-2007 , 13:26   Re: Pallets with Bags
Reply With Quote #17

HULL_* isn't related to entity flags constants directly because flags is using FL_* constants, so you can't just do: hull = pev(id, pev_flags) & HULL_HUMAN but you can detect player's hull number (HULL_*) based on his ducking (FL_DUCKING) state check.

If you would like to know how actually you can use is_hull_vacant() you have to look into the source code of Teleport Smoke Grenade (where this function was originally used).

If you going to read hlsdk_const.inc carefully, you'll see:
Quote:
Originally Posted by hlsdk_const.inc
// The hullnumber paramater of EngFunc_TraceHull, EngFunc_TraceModel and DLLFunc_GetHullBounds
Furthermore how bags is related to player's hull? I'm confused.

Last edited by VEN; 03-23-2007 at 13:47.
VEN is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 14:28   Re: Pallets with Bags
Reply With Quote #18

with this:
PHP Code:
static hull;
hull pev(idpev_flags) & FL_DUCKING HULL_HEAD HULL_HUMAN 
I can't place anywhere
Or, i think isn't required tracehull on my plugin, and i don't understand how can my code ( if(pev(id,pev_flags) & HULL_HUMAN) ) can works. Only what i want on my plugin, is to check if users isn't aiming at sky, i think its enough only that.
Any suggestions ? how works tracemodel and gethullbounds ?
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
VEN
Veteran Member
Join Date: Jan 2005
Old 03-23-2007 , 15:05   Re: Pallets with Bags
Reply With Quote #19

Quote:
Furthermore how bags is related to player's hull?
Quote:
i think isn't required tracehull on my plugin
You get it correct.

Quote:
what i want on my plugin, is to check if users isn't aiming at sky
Just do player aim trace and check if vecEndPos PointContents isn't equal to CONTENTS_SKY.
VEN is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2007 , 15:14   Re: Pallets with Bags
Reply With Quote #20

this is good ?
PHP Code:
static Float:origin1[3];
pev(id,pev_origin,origin1);
static 
ptr;
engfunc(EngFunc_TraceLine,origin1,xorigin,IGNORE_MONSTERS,id,ptr);

static 
Float:vecEndPos[3];
get_tr2(ptr,TR_vecEndPos,vecEndPos)
if(
engfunc(EngFunc_PointContents,vecEndPos) == CONTENTS_SKY)
{
        
client_print(id,print_chat,"[AMXX] You can't place a pallet with bags there");
        return 
PLUGIN_HANDLED;


Last edited by SAMURAI16; 03-23-2007 at 15:28.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
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 13:03.


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