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

[L4D & L4D2] Automatic Robot


Post New Thread Reply   
 
Thread Tools Display Modes
Nataraja
Member
Join Date: Jan 2010
Old 07-11-2010 , 17:18   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #21

I found that it will shoot the infected ghost!!!
(in versus gamemod)

Besides, please let it support the versus game!!
It's very nice plugins!!!!!!
I love it so much~~拜托让他支援对抗~

Last edited by Nataraja; 07-12-2010 at 12:03.
Nataraja is offline
marcovit
Member
Join Date: Jan 2010
Old 07-12-2010 , 06:44   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #22

Cant enable mulitipule robots either
marcovit is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 07-15-2010 , 06:32   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #23

Quote:
Originally Posted by Nataraja View Post
I found that it will shoot the infected ghost!!!
(in versus gamemod)

Besides, please let it support the versus game!!
It's very nice plugins!!!!!!
I love it so much~~拜托让他支援对抗~
Please find the follow words in sp file:
if(GameMode==2)return Plugin_Continue;
and change to
//if(GameMode==2)return Plugin_Continue;
这样就支持对抗了。
panxiaohai is offline
Nataraja
Member
Join Date: Jan 2010
Old 07-21-2010 , 16:38   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #24

I changed some code for versus.
为了支援对抗。
我自己修改了让他不会射鬼魂and other things.
请问可以把这几段加进去您的SP里面让他不会射感染的鬼魂吗??
这样以后我就不用每次更新都要增加一次了。
除此之外,请问哪边能抓到中文版的SP档阿拜托~plz~~~

Code:
new PropGhost;
 
public OnPluginStart()
{
PropGhost = FindSendPropInfo("CTerrorPlayer", "m_isGhost");
 
} 
 
 
ScanEnemy(client, Float:rpos[3] )
{
 decl Float:infectedpos[3];
 decl Float:vec[3];
 decl Float:angle[3];
  new find=0;
 new Float:mindis=100000.0;
 new Float:dis=0.0;
 for (new i = 1; i <= MaxClients; i++)
 {
  //下面我新增一个鬼魂的条件
  if(IsClientInGame(i) && GetClientTeam(i)==3 && IsPlayerAlive(i) && GetEntData(i, PropGhost, 1)!=1)
  {
   GetClientEyePosition(i, infectedpos);
   dis=GetVectorDistance(rpos, infectedpos) ;
   //PrintToChatAll("%f %N" ,dis, i);
   if(dis <robot_scanrange && dis<=mindis)
   {
    SubtractVectors(infectedpos, rpos, vec);
    GetVectorAngles(vec, angle);
    new Handle:trace = TR_TraceRayFilterEx(infectedpos, rpos, MASK_SOLID, RayType_EndPoint, TraceRayDontHitSelfAndLive, robot[client]);
 
    if(TR_DidHit(trace))
    {
 
    }
    else
    {
     find=i;
     mindis=dis;
    }
    CloseHandle(trace);
   }
  }
 }
 
 return find;
}
下面这边我complie error
不知道该不改改成这样?

Code:
if (iClient <= 0) return false;
if (iClient > MaxClients) return false;
if(!IsClientInGame(iClient))return false;
if (!IsPlayerAlive(iClient)) return false;
//complie error here!!!
else
{
return true;
}
Attached Files
File Type: sp Get Plugin or Get Source (l4d_robot_11.sp - 873 views - 23.8 KB)

Last edited by Nataraja; 07-21-2010 at 17:13.
Nataraja is offline
Nataraja
Member
Join Date: Jan 2010
Old 07-22-2010 , 03:36   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #25

other bugs report:
1. When Player exit the game with still opening !robot, the robot will keep in the place which player left the game.
2. When the energy is exhausted, the players say !robot will make the massage show of robot is activated.

有一些bug想回报请您修正:
1.玩家开启robot以后才中离,枪会飘在原地
2.当能源耗尽以后,该玩家再次输入!robot会仍有开启robot的讯息出现!

Last edited by Nataraja; 07-22-2010 at 04:12.
Nataraja is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-05-2010 , 04:40   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #26

Quote:
Originally Posted by Nataraja View Post
other bugs report:
1. When Player exit the game with still opening !robot, the robot will keep in the place which player left the game.
2. When the energy is exhausted, the players say !robot will make the massage show of robot is activated.

有一些bug想回报请您修正:
1.玩家开启robot以后才中离,枪会飘在原地
2.当能源耗尽以后,该玩家再次输入!robot会仍有开启robot的讯息出现!
1. I have not tested it, according to the codes, It does not happen.
2. The robot's energy can resume.

Last edited by panxiaohai; 08-05-2010 at 23:25.
panxiaohai is offline
corsi
Member
Join Date: Mar 2010
Old 09-13-2010 , 02:02   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #27

when a plyer exit the game with still enable !robot, i have this error in console many times:
/home/groups/alliedmodders/forums/files/7/3/0/5/4/71233.attach::OnGameFrame()
L 09/12/2010 - 21:00:13: [SM] Native "IsFakeClient" reported: Client 4 is not connected
L 09/12/2010 - 21:00:13: [SM] Displaying call stack trace for plugin "l4d_robot_12.smx":
and i have huge lag! i have to fix this but how?
corsi is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 09-13-2010 , 23:30   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #28

Quote:
Originally Posted by corsi View Post
when a plyer exit the game with still enable !robot, i have this error in console many times:
/home/groups/alliedmodders/forums/files/7/3/0/5/4/71233.attach::OnGameFrame()
L 09/12/2010 - 21:00:13: [SM] Native "IsFakeClient" reported: Client 4 is not connected
L 09/12/2010 - 21:00:13: [SM] Displaying call stack trace for plugin "l4d_robot_12.smx":
and i have huge lag! i have to fix this but how?
Thank you , change
if (!IsValidEntity(robot[client]) || IsFakeClient(client) || !IsValidAliveClient(client) )
to
if (!IsValidEntity(robot[client]) || !IsValidAliveClient(client) || IsFakeClient(client) )
in
function Do(client, Float:currenttime, Float:duration)
panxiaohai is offline
MIB
Junior Member
Join Date: Oct 2010
Old 10-14-2010 , 13:11   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #29

Great plugin!
Hope next project is sentry gun, like cod mw2 sentry gun!
MIB is offline
PieOnEar
Member
Join Date: Jul 2010
Old 02-17-2011 , 17:03   Re: [L4D & L4D2] Automatic Robot
Reply With Quote #30

Is there any way to make this shoot common infected?
It would make Survival more fun if it could
PieOnEar is offline
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 18:19.


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