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
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-31-2010 , 07:00   Re: [L4D2] Incapped Crawling with Animation (1.14)
Reply With Quote #81

No probs, I have added "l4d_crawling_speed" to the cvars which will change the games "survivor_crawl_speed" cvar. Will release later once I've tested a few other changes. Must go out for now.
__________________
Silvers is offline
sapphire989
Member
Join Date: Oct 2010
Old 10-31-2010 , 07:16   Re: [L4D2] Incapped Crawling with Animation (1.14)
Reply With Quote #82

Quote:
Originally Posted by Silvers View Post
No probs, I have added "l4d_crawling_speed" to the cvars which will change the games "survivor_crawl_speed" cvar. Will release later once I've tested a few other changes. Must go out for now.

Yeah , THX Silvers
sapphire989 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-04-2010 , 04:26   Re: [L4D2] Incapped Crawling with Animation (1.15)
Reply With Quote #83

Sorry for the delay, new version up with 2 new cvars (delete the old config or add them):

1.15
- Added cvar "l4d_crawling_speed" to change "survivor_crawl_speed" cvar (default 15).
- Added cvar "l4d_crawling_rate" to set the animation playback speed (default 15).

Please note: You no longer need to set survivor_crawl_speed to change the crawling speed, this plugin now handles that at the request of sapphire989.
__________________
Silvers is offline
sapphire989
Member
Join Date: Oct 2010
Old 11-04-2010 , 06:21   Re: [L4D2] Incapped Crawling with Animation (1.15)
Reply With Quote #84

Quote:
Originally Posted by Silvers View Post
Sorry for the delay, new version up with 2 new cvars (delete the old config or add them):

1.15
- Added cvar "l4d_crawling_speed" to change "survivor_crawl_speed" cvar (default 15).
- Added cvar "l4d_crawling_rate" to set the animation playback speed (default 15).

Please note: You no longer need to set survivor_crawl_speed to change the crawling speed, this plugin now handles that at the request of sapphire989.

THX Silvers update to 1.16 NEW VER
sapphire989 is offline
sapphire989
Member
Join Date: Oct 2010
Old 11-06-2010 , 09:13   Re: [L4D2] Incapped Crawling with Animation (1.16)
Reply With Quote #85

HI, Silvers

When the survivor drops down may use the advertisement to remind Crawling

Can you add this reminder function?

sorry,my English toobad

Last edited by sapphire989; 11-06-2010 at 09:19.
sapphire989 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-06-2010 , 09:48   Re: [L4D2] Incapped Crawling with Animation (1.16)
Reply With Quote #86

Sure... eventually lol.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-18-2010 , 10:20   Re: [L4D2] Incapped Crawling with Animation (1.18)
Reply With Quote #87

Two updates. Added hint with translations which display when incapped (optional by cvar), requested by sapphire989.


1.18
- Added hints, "l4d2_crawling_hint" and translation file.

1.17
- Cleaned up some code.
- Enables "survivor_allow_crawling" on plugin start.
- Fixed not setting "survivor_crawl_speed" on round start.
- Increased delay on player_incapacitated before allowing crawling from 1.0s to 1.5s.
__________________
Silvers is offline
sapphire989
Member
Join Date: Oct 2010
Old 11-18-2010 , 20:11   Re: [L4D2] Incapped Crawling with Animation (1.18)
Reply With Quote #88

Quote:
Originally Posted by Silvers View Post
Two updates. Added hint with translations which display when incapped (optional by cvar), requested by sapphire989.


1.18
- Added hints, "l4d2_crawling_hint" and translation file.

1.17
- Cleaned up some code.
- Enables "survivor_allow_crawling" on plugin start.
- Fixed not setting "survivor_crawl_speed" on round start.
- Increased delay on player_incapacitated before allowing crawling from 1.0s to 1.5s.
Thank you very much

I love this plugins
sapphire989 is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 11-18-2010 , 20:54   Re: [L4D2] Incapped Crawling with Animation (1.18)
Reply With Quote #89

Director hints are so much nicer. I suggest using them. Though you will need to make it translations capable.
PHP Code:
decl i_EntString:s_TargetName[32], String:s_Message[256], Handle:h_Pack
i_Ent 
CreateEntityByName("env_instructor_hint")
FormatEx(s_TargetNamesizeof(s_TargetName), "hint%d"client)
FormatEx(s_Messagesizeof(s_Message), "Use forward to crawl while incapped!")
ReplaceString(s_Messagesizeof(s_Message), "\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"s_Message)
DispatchKeyValue(i_Ent"hint_color""255 255 255")
DispatchSpawn(i_Ent)
AcceptEntityInput(i_Ent"ShowHint")
h_Pack CreateDataPack()
WritePackCell(h_Packclient)
WritePackCell(h_Packi_Ent)
CreateTimer(5.0RemoveInstructorHinth_Pack)
hintshown[client] = 1
RemoveInstructorHint timer
PHP Code:
public Action:RemoveInstructorHint(Handle:h_TimerHandle:h_Pack)
{
    
decl i_Entclient
    
    ResetPack
(h_Packfalse)
    
client ReadPackCell(h_Pack)
    
i_Ent ReadPackCell(h_Pack)
    
CloseHandle(h_Pack)
    
    if (!
client || !IsClientInGame(client))
        return 
Plugin_Handled
    
    
if (IsValidEntity(i_Ent))
            
RemoveEdict(i_Ent)
        
    return 
Plugin_Continue

__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-19-2010 , 03:52   Re: [L4D2] Incapped Crawling with Animation (1.19)
Reply With Quote #90

Thanks McFlurry! I added and updated.

Please note that clients with gameinstructor_enable set to 0 cannot see instructor hints. By default gameinstructor_enable is 1 but I noticed mine was 0 (maybe I changed a while ago).
__________________
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 09:33.


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