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

Chickenmod: Rebirth (by T(+)rget)


Post New Thread Reply   
 
Thread Tools Display Modes
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-24-2005 , 22:47  
Reply With Quote #91

ok does anyone have this when tell someone to change to chicken. they do i say attack me i'm going to try to kill you. i see the chicken model and everything. instead of trying to shoot the chicken model i am able to shoot invisable hit box where the human model is suppose to be because when i'm shooting at the chicken model i think it hitting the feet.


is this just me or is this correct?
teame06 is offline
Send a message via AIM to teame06
antileet
Member
Join Date: Sep 2004
Location: Los Angeles
Old 03-27-2005 , 16:54  
Reply With Quote #92

any1 fixed this for 1.01?
__________________
My CS Clan is BACK!!, www.utbclan.com
antileet is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 04-07-2005 , 18:20  
Reply With Quote #93

Because of some reason the below part of code with forward_traceline crashes my both CS - 1.5 and 1.6 (bad entity - IndexOfEdict() - whatever it means.
Below function forward_transline there is an AMX function (commented out) to show what it should be supposed to do.

Code:
/* HITZONES DATA */
public forward_traceline(Float:v1[3], Float:v2[3], noMonsters, pentToSkip)
{
	new entity1 = pentToSkip
	new entity2 = get_tr(TR_pHit) // victim
	new hitzone = (1<<get_tr(TR_iHitgroup))
		
	if (!is_valid_ent(entity1) || !is_valid_ent(entity2))
	{
		return FMRES_IGNORED
	}
	if (entity1 != entity2 && is_user_alive(entity1) && is_user_alive(entity2))
	{
		if(UserFlags[entity2])
		{
			if(hitzone != 64 && hitzone != 128)
			{
				return FMRES_SUPERCEDE
			}
		}
		return FMRES_IGNORED
	}
	return FMRES_IGNORED
}

/* AMX version of traceline() from VexdUM
public traceline(entity1, entity2, hitzone)
{
	if(UserFlags[entity2])
	{
		if(hitzone != 64 && hitzone != 128)
		{
			return 3
		}
	}
	return PLUGIN_CONTINUE
}*/
After few tests I narrowed the line causing the crash.
It's this one:
Code:
	new entity2 = get_tr(TR_pHit) // victim
If everything else is commented out (except the last return FMRES_SUPERCEDE and this line above) - then server crashes.
If I leave only the last return FMRES_IGNORED - the server doesn't crash.

Dunno if it's something wrong in this code. The info in includes is again much helpful and useful and leting me understand all
//only use this with functions that pass a Trace
// get: zero extra params - return int, one extra param = byref float or vector
// set: use anything
native get_tr(TraceResult:tr_member, {Float,_}:...);

Or maybe there is a bug in fakemeta module. Using latest AMX MOD X 1.01 with metamod 1.17.3 (someone told me 1.17.4 isn't so good).
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-08-2005 , 02:17  
Reply With Quote #94

Found the error that causing chicken rebirth to crash in AMX MOD x 1.01

Change register_forward(FM_TraceLine, "forward_traceline")

To

register_forward(FM_TraceLine, "forward_traceline", 1)

Fixes the (bad entity - IndexOfEdict()
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Mr. AWPster
Member
Join Date: Sep 2004
Location: basement
Old 04-08-2005 , 02:28  
Reply With Quote #95

nice fix teame06, works great

Last edited by Matthias Vance; 02-23-2011 at 08:10. Reason: No source code provided.
Mr. AWPster is offline
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 04-12-2005 , 23:29  
Reply With Quote #96

Wow, really nj. Thank you also for including a chicken menu.

Now, i have to go back to being a chicken!
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
Dadark
Junior Member
Join Date: Apr 2005
Old 04-14-2005 , 07:14  
Reply With Quote #97

But there is still a conflict problem with ATAC : when a player choose to punish someone with the chicken, at next round, the player stays as a chicken, and will never change back into human (even when the message "turned back into human" is writen) until some admin put him back human via the chicken menu. :/

The ATAC people says that a chicken rebirth update should be done, so they can modify that.
Dadark is offline
lai
Junior Member
Join Date: Apr 2005
Old 04-25-2005 , 07:40  
Reply With Quote #98

I want translate to Chinese, asked may provide the source code which corrects mistakes (movement in the amxmodx1.01 source code) to thank.
lai is offline
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 04-25-2005 , 07:48  
Reply With Quote #99

Quote:
Originally Posted by Dadark
But there is still a conflict problem with ATAC : when a player choose to punish someone with the chicken, at next round, the player stays as a chicken, and will never change back into human (even when the message "turned back into human" is writen) until some admin put him back human via the chicken menu. :/

The ATAC people says that a chicken rebirth update should be done, so they can modify that.
Its fixed now! get the newest version of ATAC
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
lai
Junior Member
Join Date: Apr 2005
Old 04-25-2005 , 08:49  
Reply With Quote #100

Quote:
Originally Posted by teame06
Found the error that causing chicken rebirth to crash in AMX MOD x 1.01

Change register_forward(FM_TraceLine, "forward_traceline")

To

register_forward(FM_TraceLine, "forward_traceline", 1)

Fixes the (bad entity - IndexOfEdict()
Extremely thank teame06 to discover the mistake, revised. Thanks.
lai is offline
Reply


Thread Tools
Display Modes

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:29.


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