Raised This Month: $ Target: $400
 0% 

Whats is AddToFullPack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NomadCF
Member
Join Date: Oct 2006
Old 11-08-2006 , 12:23   Whats is AddToFullPack
Reply With Quote #1

what is AddToFullPack and how would one use it ?

Side I have tried looking it up inthe Wikki and in functions..but they don't really don't say any thing about it.
NomadCF is offline
Send a message via AIM to NomadCF
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-08-2006 , 12:35   Re: Whats is AddToFullPack
Reply With Quote #2

Code:
stock DF_AddToFullPack(const STATE = 0, e, ENT, HOST, hostflags, player, set)
	return dllfunc(DLLFunc_AddToFullPack, STATE, e, ENT, HOST, hostflags, player, set)
Quote:
Originally Posted by fakemeta_stocks.inc
// You can pass in 0 for global entity state handle or another entity state handle here
DLLFunc_AddToFullPack
Thats all i could find...
[ --<-@ ] Black Rose is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-08-2006 , 12:49   Re: Whats is AddToFullPack
Reply With Quote #3

From the HLSDK's client.cpp
Code:
/* AddToFullPack Return 1 if the entity state has been filled in for the ent and the entity will be propagated to the client, 0 otherwise state is the server maintained copy of the state info that is transmitted to the client a MOD could alter values copied into state to send the "host" a different look for a particular entity update, etc. e and ent are the entity that is being added to the update, if 1 is returned host is the player's edict of the player whom we are sending the update to player is 1 if the ent/e is a player and 0 otherwise pSet is either the PAS or PVS that we previous set up.  We can use it to ask the engine to filter the entity against the PAS or PVS. we could also use the pas/ pvs that we set in SetupVisibility, if we wanted to.  Caching the value is valid in that case, but still only for the current frame */ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet )
VEN is offline
NomadCF
Member
Join Date: Oct 2006
Old 11-08-2006 , 15:13   Re: Whats is AddToFullPack
Reply With Quote #4

I hate to ask this (because I think it's asking alot). But does any one have a example of this in action..

The Idea is to allow players to create/buy half model height barriers that when they duck behind the other team can not see them or the barrier. But there own team could still see them and the barrier.
NomadCF is offline
Send a message via AIM to NomadCF
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-08-2006 , 17:05   Re: Whats is AddToFullPack
Reply With Quote #5

You could very well use this for that purpose I believe, try looking the HL SDK read me (not really a read me, but its in one of the docs), it has a full explanination there.

edit
This may/may not work depending on what the client side DLL does with this info.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred

Last edited by Zenith77; 11-08-2006 at 22:37.
Zenith77 is offline
NomadCF
Member
Join Date: Oct 2006
Old 11-08-2006 , 23:03   Re: Whats is AddToFullPack
Reply With Quote #6

ok I think I'm on the right track (and yes I know this is way way over my head, but I'm still trying)

ok so heres what I have:

Code:
public plugin_init()	
{
	register_plugin("the_AddToFullPack","1.0","Chris L. Franklin")
	register_forward(FM_AddToFullPack,"test")
}


//struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet
public test(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet) {
	
	new to_player_name[125]
	new about_player_name[125]
	
	get_user_name(e,about_player_name,124)
	get_user_name(player,to_player_name,124)
	
	if (strcmp(to_player_name,"nomadcf",1)) {
		//this is to you about others players
	}
	
	if (strcmp(about_player_name,"nomadcf",1)) {
		//this is about you to others
	}
}
But now I'm kinda confused where I should turn to next. I know where I need to add code to make others not see me (in my tests above) and I know some how I also need ot return a 0 to tell AddToFullPack not to show this players model and such. I'm just not sure how.

Sorry to be just a bother-sum noob about all this.
NomadCF is offline
Send a message via AIM to NomadCF
NomadCF
Member
Join Date: Oct 2006
Old 11-09-2006 , 00:28   Re: Whats is AddToFullPack
Reply With Quote #7

oh I think I got it !!! I'll post the results in a few !!
NomadCF is offline
Send a message via AIM to NomadCF
NomadCF
Member
Join Date: Oct 2006
Old 11-09-2006 , 01:43   Re: Whats is AddToFullPack
Reply With Quote #8

This example will make any one on any other team beside yours invisble to you and you to them. I hope this helps others !!

Quote:

public plugin_init()
{
register_plugin("HideOtherTeamTest","1.0","Ch ris L. Franklin")
register_forward(FM_AddToFullPack,"test")
}


//struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet
public test(ent_state,e,edict_t_ent,host,hostflags,p layer,pSet) {

// only take effect if both players are alive & and not somthing else like a ladder
if (is_user_alive(e) && is_user_alive(host)) {

// Get players teams
new e_team = pev(e,pev_team)
new h_team = pev(host,pev_team)

// Hide people if there not on your team
if (e_team != h_team) {
set_pev(e, pev_renderamt, float(0))
set_pev(e, pev_rendermode, 1)
return 0
}
}

return 1
}

Last edited by NomadCF; 11-09-2006 at 01:45. Reason: added txt
NomadCF is offline
Send a message via AIM to NomadCF
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-09-2006 , 01:56   Re: Whats is AddToFullPack
Reply With Quote #9

Have you tested this with multiple people on both teams? It seems that this would only hide you from the host of the server.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
NomadCF
Member
Join Date: Oct 2006
Old 11-09-2006 , 01:59   Re: Whats is AddToFullPack
Reply With Quote #10

yes by "Host" it is refering to the player that is getting the update. Not as in server being the host.
NomadCF is offline
Send a message via AIM to NomadCF
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 06:46.


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