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

[L4D & L4D2] Decoration For Witch Killer, Witch Guard


Post New Thread Reply   
 
Thread Tools Display Modes
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 02-04-2019 , 04:17   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #21

Quote:
Originally Posted by Spirit_12 View Post
Can you also update the syntax as well?
Sorry, Im not sure about that. I thik Im typing my plugins in old syntax.
I have never know when it changed.
axelnieves2012 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-24-2019 , 12:24   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #22

Quote:
/*
Fork by Dragokas.

ChangeLog:

1.4 (Dragokas)
- Witch with 128,0,0,255 color will not be a guard (for special purposes)

1.3 (Dragokas)
- Moved to a new syntax and methodmaps
- Removed witch as soon as player die (it's previously cause annoing bug when witch is appear in front of another player who are observed).
- Added ability to see witch on spine when you toggle third person view (thanks to Lux)
- Added translation into Russian

*/
Attached Files
File Type: txt witch_guard.phrases.txt (1.8 KB, 102 views)
File Type: sp Get Plugin or Get Source (witch_guard_l4d.sp - 407 views - 26.7 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 04-24-2019 , 22:43   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #23

Thanks for share this!
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 05-01-2019 , 00:32   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #24

thanksssss
axelnieves2012 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-04-2019 , 21:59   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #25

[EDIT]

Updated attachment above.
__________________

Last edited by Marttt; 05-09-2019 at 12:34.
Marttt is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-05-2019 , 21:07   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #26

Quote:
Originally Posted by Marttt View Post
Fork from Dragokas version (v.1.4.1)
  • Added "pt" and "es" translations. ("phrases" file can also be used in 1.4.0)
  • Created a new convar: l4d_witch_guard_steal - Enables/Disables other clients to steal(pick up) a Witch from other owners while on the ground.
    (default "0" => disabled, gonna print "Steal_Witch" message to the activator)
  • Replaced pipebomb model for the already precached molotov.
  • Removed fire from Witch's foot.
PHP Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d_witch_onback.sp
//
// l4d_witch_onback.sp(107) : warning 219: local variable "ent" shadows a variable at a preceding level
// l4d_witch_onback.sp(493) : warning 219: local variable "ent" shadows a variable at a preceding level
// l4d_witch_onback.sp(537) : error 017: undefined symbol "ent"
// l4d_witch_onback.sp(607) : warning 219: local variable "ent" shadows a variable at a preceding level
//
// 1 Error.
//
// Compilation Time: 0.19 sec
// ----------------------------------------

Press enter to exit ... 
Change line 537:

From:

PHP Code:
SetEntPropFloat(entProp_Send"m_flModelScale"0.0); 
To:

PHP Code:
SetEntPropFloat(dummyProp_Send"m_flModelScale"0.0); 
__________________
Psyk0tik is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-05-2019 , 22:35   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #27

Thanks Crasher_3637, fixed above.
__________________

Last edited by Marttt; 05-06-2019 at 15:44.
Marttt is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-06-2019 , 15:33   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #28

[EDIT]

Updated attachment above.
__________________

Last edited by Marttt; 05-09-2019 at 12:34.
Marttt is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 05-06-2019 , 15:48   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #29

Quote:
Originally Posted by Marttt View Post
Fork from Dragokas version

v1.4.1
  • Added "pt" and "es" translations. ("phrases" file can also be used in 1.4.0)
  • Created a new convar: l4d_Witch_guard_steal - Enables/Disables other clients to steal(pick up) a Witch from other owners while on the ground.
    (Note: default "0" => disabled, gonna print "Steal_Witch" message to the activator)
  • Replaced pipebomb model for the already precached molotov.

Fork from Dragokas version + v1.4.1 (v.1.4.2)

v1.4.2 (attached)
  • Increased the time to "put down" the Witch into 0.5s, now it takes 1.5s seconds (same time as the pickup action)
    (Note: changed to prevent "unwanted" spawns while using the "USE" button to do other actions.)
  • Added a check to Witch don't be "put down" while reviving teammates or during actions like using a gas can, starting a generator, etc.
    (Note: If you hold the "USE" button during 1.5s, after the previous action ends, the Witch will still gonna be "put down".)

Special thanks to:
  • Dragokas, for the Fork.
  • MasterMind420, for his "Heal fixes" plugin. (which helped me to find a way to block the witch "put down" during "USE" actions)
  • Mi.Cura, for testing.
  • Crasher_3637, for reviewing a problem in the code.
you could import LMC's thirdperson check into this plugin and remove the witchview command
https://github.com/LuxLuma/Luxs-Mode...t.sp#L144-L260
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-06-2019 , 16:36   Re: [L4D & L4D2] Decoration For Witch Killer, Witch Guard
Reply With Quote #30

There is already a check based on c_thirdpersonshoulder query.
witchview command is just redundant now.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 05:44.


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