Raised This Month: $32 Target: $400
 8% 

[L4D2]Request fix error


Post New Thread Reply   
 
Thread Tools Display Modes
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 03-30-2019 , 02:56   Re: [L4D2]Request fix error
Reply With Quote #21

SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpVfnhA5.sp(46) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpVfnhA5.sp(114) : warning 203: symbol is never used: "client"
Code size: 8796 bytes
Data size: 3636 bytes
Stack/heap size: 16384 bytes
Total requirements: 28816 bytes

2 Warnings.

there is no freezing effect
BlackSabbarh is offline
AK978
Senior Member
Join Date: Jun 2018
Old 03-30-2019 , 11:01   Re: [L4D2]Request fix error
Reply With Quote #22

Only valid for special infections.

need test.
Attached Files
File Type: sp Get Plugin or Get Source (ice_bomb.sp - 143 views - 9.0 KB)
AK978 is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 07-30-2019 , 03:12   Re: [L4D2]Request fix error
Reply With Quote #23

There is a bug in the confrontation mode
It can freeze the state of the soul, please do not freeze the infected person of the soul state
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-30-2019 , 11:56   Re: [L4D2]Request fix error
Reply With Quote #24

You mean Ghost Mode?

If is what you mean just check by this stock:


Quote:
/**
* Validates if the client is a ghost.
*
* @param client Client index.
* @return True if client is a ghost, false otherwise.
*/
bool IsPlayerGhost(int client)
{
return GetEntProp(client, Prop_Send, "m_isGhost", 1) == 1;
}
__________________
Marttt is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 08-07-2019 , 15:40   Re: [L4D2]Request fix error
Reply With Quote #25

//获取实体所有者
new client = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity");
CheckCommandAccess(client, "sm_blahblah", ADMFLAG_UNBAN);

no effect? Line 76-77


bool IsPlayerGhost(int client)
{
return GetEntProp(client, Prop_Send, "m_isGhost", 1) == 1;
}

How many lines should this paragraph be added to?
__________________
I like this BBS sharing of spirit

I come from China, my English is poor

Last edited by phoenix0001; 08-07-2019 at 15:42.
phoenix0001 is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 08-08-2019 , 03:36   Re: [L4D2]Request fix error
Reply With Quote #26

Quote:
Originally Posted by Marttt View Post
Try this one.
no effect
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-08-2019 , 06:32   Re: [L4D2]Request fix error
Reply With Quote #27

Ok, made some new checks, try again.
Attached Files
File Type: sp Get Plugin or Get Source (ice_bomb.sp - 135 views - 9.3 KB)
__________________
Marttt is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 08-09-2019 , 01:02   Re: [L4D2]Request fix error
Reply With Quote #28

Quote:
Originally Posted by Marttt View Post
Ok, made some new checks, try again.
thank you.
Can be used, everything is normal.
You can fix it by the way.
//获取实体所有者
new client = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity");
CheckCommandAccess(client, "sm_blahblah", ADMFLAG_UNBAN);
no effect? Line 76-77
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-09-2019 , 07:40   Re: [L4D2]Request fix error
Reply With Quote #29

Actually this code does nothing.

It's getting the owner of the entity and checking if it has some kind of flag for the command.
From what I analysed, the author just used that to do some debugging about from which player came the projectile.

Maybe the author just left this comment there, don't worry. The plugin should work fine.
__________________
Marttt 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 01:34.


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