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

[L4D2] Incapped Crawling with Animation (2.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
sapphire989
Member
Join Date: Oct 2010
Old 11-24-2010 , 21:04   Re: [L4D2] Incapped Crawling with Animation (1.19)
Reply With Quote #91

Code:
L 11/25/2010 - 02:49:30: SourceMod error session started
L 11/25/2010 - 02:49:30: Info (map "c7m1_docks") (file "errors_20101125.log")
L 11/25/2010 - 02:49:30: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
L 11/25/2010 - 02:49:30: [SM] Displaying call stack trace for plugin "l4d2_incapped_crawling_1.19.smx":
L 11/25/2010 - 02:49:30: [SM]   [0]  Line 227, D:\Games\Left 4 dead 2\left4dead2\addons\sourcemod\scripting\l4d2_incapped_crawling_1.19.sp::OnPluginEnd()
L 11/25/2010 - 02:49:31: Error log file session closed.
Do not know what error ??

THX
sapphire989 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-25-2010 , 09:05   Re: [L4D2] Incapped Crawling with Animation (1.20)
Reply With Quote #92

Thanks sapphire989, minor bug (lazy coding) but should be fixed now.
__________________
Silvers is offline
saldana
Junior Member
Join Date: Oct 2010
Old 11-25-2010 , 22:22   Re: [L4D2] Incapped Crawling with Animation (1.20)
Reply With Quote #93

you can fix the bug about "Instructor Hint" follow this code

your code:
case 3: // Instructor Hint
{
decl i_Ent, String:s_TargetName[32], Handle:h_Pack;
i_Ent = CreateEntityByName("env_instructor_hint");
FormatEx(s_TargetName, sizeof(s_TargetName), "hint%d", client);
FormatEx(buffer, sizeof(buffer), "Press FORWARD to crawl while incapped!");
ReplaceString(buffer, sizeof(buffer), "\n", " ");
DispatchKeyValue(client, "targetname", s_TargetName);
DispatchKeyValue(i_Ent, "hint_target", s_TargetName);
DispatchKeyValue(i_Ent, "hint_timeout", "5");
DispatchKeyValue(i_Ent, "hint_range", "0.01");
DispatchKeyValue(i_Ent, "hint_icon_onscreen", "icon_tip");
DispatchKeyValue(i_Ent, "hint_caption", buffer);
DispatchKeyValue(i_Ent, "hint_color", "255 255 255");
DispatchSpawn(i_Ent);
AcceptEntityInput(i_Ent, "ShowHint");
h_Pack = CreateDataPack();
WritePackCell(h_Pack, client);
WritePackCell(h_Pack, i_Ent);
CreateTimer(5.0, RemoveInstructorHint, h_Pack);


my code:

case 3: // Instructor Hint
{
decl i_Ent, String:s_TargetName[32], Handle:h_Pack;
i_Ent = CreateEntityByName("env_instructor_hint");
FormatEx(s_TargetName, sizeof(s_TargetName), "hint%d", client);
FormatEx(buffer, sizeof(buffer), "%t", "Crawl");
ReplaceString(buffer, sizeof(buffer), "\n", " ");
DispatchKeyValue(client, "targetname", s_TargetName);
DispatchKeyValue(iEntity, "hint_auto_start", "1");
DispatchKeyValue(i_Ent, "hint_target", s_TargetName);
DispatchKeyValue(i_Ent, "hint_timeout", "5");
DispatchKeyValue(i_Ent, "hint_range", "0.01");
DispatchKeyValue(i_Ent, "hint_icon_onscreen", "icon_tip");
DispatchKeyValue(i_Ent, "hint_caption", buffer);
DispatchKeyValue(i_Ent, "hint_color", "123 255 82");
DispatchSpawn(i_Ent);
AcceptEntityInput(i_Ent, "ShowHint");
h_Pack = CreateDataPack();
WritePackCell(h_Pack, client);
WritePackCell(h_Pack, i_Ent);
CreateTimer(5.0, RemoveInstructorHint, h_Pack);


last,you must set client value : gameinstructor_enable 1
you can use this code:
//-------------------------------------------
public OnClientConnected(client)
{
if(!IsFakeClient(client))
{
PrintToChat(client, "your word here.");
ClientCommand(client, "gameinstructor_enable 1")
}

Last edited by saldana; 11-25-2010 at 22:59.
saldana is offline
saldana
Junior Member
Join Date: Oct 2010
Old 11-25-2010 , 22:32   Re: [L4D2] Incapped Crawling with Animation (1.20)
Reply With Quote #94

btw,your plug-in incompatible with [L4D, L4D2] Self Revive.
saldana is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-25-2010 , 22:54   Re: [L4D2] Incapped Crawling with Animation (1.21)
Reply With Quote #95

Thanks for the info, updated.
__________________
Silvers is offline
saldana
Junior Member
Join Date: Oct 2010
Old 11-25-2010 , 23:02   Re: [L4D2] Incapped Crawling with Animation (1.21)
Reply With Quote #96

read my post again at #93
saldana is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-25-2010 , 23:35   Re: [L4D2] Incapped Crawling with Animation (1.21)
Reply With Quote #97

How is "hint_auto_start" being set to 1 going to do anything? It displays when created as expected unless the client has gameinstructor_enable set to 0.

I will not force convars on clients. I am sick of servers doing that stuff to me and just today had gameinstructor_enable 1 being forced on me, which I do not want...
__________________
Silvers is offline
sapphire989
Member
Join Date: Oct 2010
Old 11-26-2010 , 00:02   Re: [L4D2] Incapped Crawling with Animation (1.21)
Reply With Quote #98

Quote:
Originally Posted by Silvers View Post
How is "hint_auto_start" being set to 1 going to do anything? It displays when created as expected unless the client has gameinstructor_enable set to 0.

I will not force convars on clients. I am sick of servers doing that stuff to me and just today had gameinstructor_enable 1 being forced on me, which I do not want...

1.21 is final ver , right ?

Last edited by sapphire989; 11-26-2010 at 00:17. Reason: already using v1.21 THX Silvers
sapphire989 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-26-2010 , 00:28   Re: [L4D2] Incapped Crawling with Animation (1.21)
Reply With Quote #99

Yeah, for now... lol.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-02-2011 , 09:58   Re: [L4D2] Incapped Crawling with Animation (1.22) [02-Jan-2011]
Reply With Quote #100

1.22
- Changed thirdperson view because of Valve patching some client commands.
- Positioned the model better and removed the timer creating the model.


This version works better now, I would recommend everyone update
__________________
Silvers 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 10:22.


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