AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Witch Control (https://forums.alliedmods.net/showthread.php?t=125591)

DJ_WEST 04-30-2010 06:55

[L4D2] Witch Control
 
3 Attachment(s)
[L4D2] Witch Control

Version: 1.3



Description:
The plugin allows infected players to take control of a witch. Aim to it and press USE button (default E). You can sit down and get up witch by press DUCK button (default CTRL). Also you can lose control of the witch by press USE button.
You can't control a witch when she was scared.

Witch features:
  • Walk and turn
  • Sit down and get up
  • Сlimb on the ladders
  • Fall from height
  • Jump
  • Attack

Video

Cvars:
Quote:

l4d2_witch_speed - witch speed (default: 2.0) (range: 1.0-5.0).

l4d2_witch_take_mode - mode of taking control of a witch (default: 2)
0 - only alive infected
1 - only ghost infected
2 - alive and ghost infected

l4d2_witch_message_type - message type (default: 3)
0 - disable
1 - chat
2 - hint
3 - instructor hint

l4d2_witch_attack - witch attack ability (deafult: 1)
0 - disable
1 - enable
Installation:
1. Download the "l4d2_witch_control.smx" and put into your "addons\sourcemod\plugins" directory.
2. Download the "l4d2_witch_control.txt" and put into your "addons\sourcemod\gamedata" directory.
3. Download the "translations.zip" and extract into your "addons\sourcemod" directory.

Credits:
V10 for the "SetClass" signature

Translations:
  • en - AtomicStryker
  • ru - DJ_WEST
  • de - AtomicStryker
  • pl - kwski43

Changelog:
Quote:

1.3:
  • Fixed error in RemoveWitchControl() function
  • Fixed the game instructor function (l4d2_witch_message_type 3), now cvar gameinstructor_enable set 0 correctly on the players
  • Added witch attack ability (MOUSE1)
  • Added witch jump ability (SPACE)
  • Added witch ability to turn left or right when are you sitting
  • Added new cvar l4d2_witch_attack
  • Fixed bug when burning infected tried to take witch and players see fire effect on the witch, thanks DarrenToh
  • Fixed bug when player set witch on fire, now you can't control witch if she burning, thanks DarrenToh
1.2:
  • Fixed bug when a person is in control of a witch and a tank spawns, thanks DarrenToh
  • Fixed error when the plugin sets gameinstructor_enable to 1 every time if l4d2_witch_message_type != 3, thanks kwski43
  • Fixed bug when all the survivors die while a player is controlling the witch, that player in next round will either suddenly die or be stuck, thanks crazydog
  • Added "pl" translation, thanks kwski43
1.1:
  • Fixed bug when players can see a hunter model, thanks dani1341
  • Updated translations, thanks AtomicStryker
1.0:
  • Initial Release


ellis 04-30-2010 07:15

Re: [L4D2] Witch Control
 
really awesome dj_west!! :up:

DarrenToh 04-30-2010 09:18

Re: [L4D2] Witch Control
 
I LOVE YOU!

dani1341 04-30-2010 09:21

Re: [L4D2] Witch Control
 
Finally :)

FuzzOne 04-30-2010 09:25

Re: [L4D2] Witch Control
 
i dont belive O_O
A plugins that finally do it!

Maxunit 04-30-2010 09:31

Re: [L4D2] Witch Control
 
Can it be done to FULLY control her? Like even attack on your own etc?

EHG 04-30-2010 09:33

Re: [L4D2] Witch Control
 
Very interesting. Good job.
I bet you could use the same method to control common infected.

It would be cool to be able to control common infected while waiting for special infected respawn timer.

Visual77 04-30-2010 09:52

Re: [L4D2] Witch Control
 
Wow, what a mod. Nice one. Can you add the IN_RELOAD button aswell?
And add a cvar if you want the USE button or the RELOAD button?

Cookies 04-30-2010 10:26

Re: [L4D2] Witch Control
 
Hmm nice works well


EDIT: is there gonna be a way to control even after startaled in future with a cvar to turn it on off maybe :-)

DJ_WEST 04-30-2010 11:00

Re: [L4D2] Witch Control
 
Quote:

hmm is there anyway to stop the l4d2_witch_message_type 3 - instructor hint as it seems to be bringing up the instructor hint for everything even things like picking up med kicks melees hurting team m8's ect
gameinstructor_enable "0"
Quote:

Can it be done to FULLY control her? Like even attack on your own etc?
It can, but it will be difficult, because the witch also do actions on different events, written by developers for her. Besides, it will be a very disbalanced to the survivors, because the witch has a strong attacks.
I just had the idea to do attack for witch (like a hunter mouse2 attack) to break objects (like doors).
Quote:

Wow, what a mod. Nice one. Can you add the IN_RELOAD button aswell?
And add a cvar if you want the USE button or the RELOAD button?
You can do it by self. Replace IN_USE with IN_RELOAD.

dani1341 04-30-2010 11:01

Re: [L4D2] Witch Control
 
hmm only bad thing on this is that it doesnt counts the damage that u made with the witch :( is it possible to make that it counts the damage ?

Visual77 04-30-2010 11:05

Re: [L4D2] Witch Control
 
Quote:

Originally Posted by DJ_WEST (Post 1165564)
You can do it by self. Replace IN_USE with IN_RELOAD.

Yeah, but how to change the gameinstuctor picture. It curretly still has the E button in the screen :wink: How do you replace it to say R.
Ive already changed the text in the translation file.

Cookies 04-30-2010 11:07

Re: [L4D2] Witch Control
 
also having a problem that i can only put down to this as its only thing changed but then it has nothing to do with server but m8 who was testing this with me also had same problem....
Asuming it is this it is changing the game instructor in my options back on and removed all my binds and same for my m8
EDIT: i dont see how a mod could affect stuff in my options menu but you guys know what your talking about and i dont........ Any advice?

EDIT 2) Also only seems to be doing this once you take control of the witch so im asuming it must be this causing it but it dosnt disableing it after and its enabling it for everyone not just the person controling the witch.

AtomicStryker 04-30-2010 11:22

Re: [L4D2] Witch Control
 
Fixed up translations

PHP Code:

"Phrases"
{
    
"Information"
    
{
        
"en"    "Hint"
        "ru"    "Информация"
        "de"    "Tipp"
    
}
    
"Take witch"
    
{
        
"en"    "You can take control of the witch by pressing the USE button on her"
        "ru"    "Вы можете взять контроль над ведьмой,\nподойдя к ней и нажав кнопку ИСПОЛЬЗОВАТЬ"
        "de"    "Man kann die Kontrolle über die Witch mit BENUTZEN uebernehmen"
    
}
    
"Lose witch"
    
{
        
"en"    "You can let go control of the witch by pressing the USE button again"
        "ru"    "Вы можете отдать контроль над ведьмой,\nнажав кнопку ИСПОЛЬЗОВАТЬ"
        "de"    "Drücke noch einmal BENUTZEN, um die Witch wieder zu verlassen"
    
}
    
"Sit witch"
    
{
        
"en"    "You can sit down and get up as witch by pressing the DUCK button"
        "ru"    "Вы можете садиться и вставать ведьмой,\nнажав кнопку ПРИСЕСТЬ"
        "de"    "Man kann sich als Witch mit DUCKEN setzen oder aufstehen"
    
}



Really like your Plugins :D

quang20082008 04-30-2010 11:22

Re: [L4D2] Witch Control
 
Coooooooooooooooooooooool:@).

Cookies 04-30-2010 11:40

Re: [L4D2] Witch Control
 
Quote:

Originally Posted by Cookies (Post 1165580)
also having a problem that i can only put down to this as its only thing changed but then it has nothing to do with server but m8 who was testing this with me also had same problem....
Asuming it is this it is changing the game instructor in my options back on and removed all my binds and same for my m8
EDIT: i dont see how a mod could affect stuff in my options menu but you guys know what your talking about and i dont........ Any advice?

EDIT 2) Also only seems to be doing this once you take control of the witch so im asuming it must be this causing it but it dosnt disableing it after and its enabling it for everyone not just the person controling the witch.

Also putting this in gameinstructor_enable "0" dosnt seem to help still seems to be forcing everyones instructor hint on in game

DJ_WEST 04-30-2010 12:05

Re: [L4D2] Witch Control
 
Quote:

Yeah, but how to change the gameinstuctor picture.
Replace:
Code:

DisplayInstructorHint(i_Client, s_Message, "+use")
With:
Code:

DisplayInstructorHint(i_Client, s_Message, "+reload")
Quote:

also having a problem that i can only put down to this as its only thing changed but then it has nothing to do with server but m8 who was testing this with me also had same problem....
Asuming it is this it is changing the game instructor in my options back on and removed all my binds and same for my m8
EDIT: i dont see how a mod could affect stuff in my options menu but you guys know what your talking about and i dont........ Any advice?

EDIT 2) Also only seems to be doing this once you take control of the witch so im asuming it must be this causing it but it dosnt disableing it after and its enabling it for everyone not just the person controling the witch.
If you are talking about instructor hint. The value of gameinstructor_enable cvar after displaying a hint message is returned. If you had gameinstructor_enable 0 and then left 1, then it could happen when the second hint message is displayed, while the first hint hasn't yet removed.
Quote:

Fixed up translations
Thanks! ;) I will update translations later.
Quote:

Also putting this in gameinstructor_enable "0" dosnt seem to help still seems to be forcing everyones instructor hint on in game
Because you have l4d2_witch_message_type 3. And when displaying hint messages, plugin query the value of the client cvar (gameinstructor_enable), then execution gameinstructor_enable 1, then return cvar value based on the query.

DJ_WEST 04-30-2010 12:08

Re: [L4D2] Witch Control
 
Cookies, if you want after the show hint messages always been gameinstructor_enable 0, then try to replace:
Code:

        if (!g_GameInstructor[i_Client])
                ClientCommand(i_Client, "gameinstructor_enable 0")

With:
Code:

                ClientCommand(i_Client, "gameinstructor_enable 0")

dani1341 04-30-2010 12:22

Re: [L4D2] Witch Control
 
i have a little problem with the plugin :(

the problem is witch sits at the stairs and i was survivor . As i looked at witch it was hunter and witch at same time :shock: Why it was so ?

PS : Sorry for my bad english :(

Cookies 04-30-2010 12:26

Re: [L4D2] Witch Control
 
i belive it is because there using the infecteds class of player controling witch and merging them together and moving the witch i get it also looks funny :D

Visual77 04-30-2010 12:29

Re: [L4D2] Witch Control
 
Thanks, DJ_WEST :wink:

Cookies 04-30-2010 12:29

Re: [L4D2] Witch Control
 
Quote:

Originally Posted by DJ_WEST (Post 1165650)
Cookies, if you want after the show hint messages always been gameinstructor_enable 0, then try to replace:
Code:

    if (!g_GameInstructor[i_Client])
        ClientCommand(i_Client, "gameinstructor_enable 0")

With:
Code:

        ClientCommand(i_Client, "gameinstructor_enable 0")

I want it so it dosnt force gameinstructor on and leave it on if thats what that does then yeah also if it is i havnt a clue where that would be found ect never used or seen codes before let alone editting them although copy and paste is simple just make sure to save ect, so i could replace it
Also doing that would that stop others from getting it after they use control of witch?

Basically in my fail of english how would i do that could you give me a little more help please?

Thanks

Cuthbert 04-30-2010 12:32

Re: [L4D2] Witch Control
 
Visionary.

Cookies 04-30-2010 13:08

Re: [L4D2] Witch Control
 
@ DJ_WEST firstly sorry ii have wasted your time it was beacuse i force spawned the witchs that it was doing that so there is no problem at all very sorry thanks for trying to help me though it was just fail on my part...
It is all working fine now.

DJ_WEST 04-30-2010 13:26

Re: [L4D2] Witch Control
 
Quote:

the problem is witch sits at the stairs and i was survivor . As i looked at witch it was hunter and witch at same time
Fixed. Thanks.

Cookies, no problem :)

New version 1.1.

dani1341 04-30-2010 13:53

Re: [L4D2] Witch Control
 
Thanks for the fix :) that was the only problem i had :)

IronWarrior 04-30-2010 15:04

Re: [L4D2] Witch Control
 
Awesome plugin is awesome. :D

DJ WEST do you foresee any problems using this when there can be more then one witch alive per time on a 10vs10 !usepoints server?

Just to comfirm, this plugin allows you to control the movement of the Witch only? Her attacks are all game controlled?

kwski43 04-30-2010 16:45

Re: [L4D2] Witch Control
 
Awesome!

IronWarrior 04-30-2010 16:56

Re: [L4D2] Witch Control
 
I think I had the Hunter and Witch bug at the same time.

I looked at the witch, nothing happened, through my vision went different, but I was still in a Hunter body.

Someone tired to shoot me when I was a hunter with a shotgun in my face, he hit me about 10 times wasn't really hurting me.

Using SM 1.4 and latest MM on linux.

Using this on a 10vs10 Realism VS server, seems the Witch Mod will only work for the first witch only.

UPDATE.

I was a boomer, took control of the witch, but the boomer had 2000HP and I couldn't be killed.

They lit the witch on fire and I started to lose HP while being on fire at the same time as a Boomer.

Skorpion1976 04-30-2010 17:15

Re: [L4D2] Witch Control
 
Epic idea but does not work if there´s more than 1 witch at the same time.
Everytime I aim at an additionally spawned witch and press USE I die instantly :)

Maxunit 04-30-2010 17:29

Re: [L4D2] Witch Control
 
This plugin is really cool so far, but I would like to have better controls (keyboard + mouse, instead of keyboard only) and, what I mentioned before, full control. I don't think so, that it would unbalance it the game THAT much.

But besides that, a damn good plugin so far :)

kwski43 04-30-2010 17:29

Re: [L4D2] Witch Control
 
This plugins sets for me gameinstructor_enable to 1 every time i take control of the witch, messagemode is 2...

And make the attack possible, but only in 2 cases:
-witch is near door or other destroyable thing
-witch is angry (you could add something that fills you anger meter and after it fills, you can rage at survivors for the limited time)

LTR.2 04-30-2010 18:16

Re: [L4D2] Witch Control
 
i can't believe it, you are doing the impossible.

nice plugin, i will try it out.

crazydog 04-30-2010 20:17

Re: [L4D2] Witch Control
 
If all the survivors die while a human is controlling the witch, that human will either suddenly die or be stuck somewhere in the map when they spawn as a survivor.

Also: I hope if you don't mind me stealing the instructor message code to put it some other plugins I'm using. :P

Cuthbert 04-30-2010 21:56

Re: [L4D2] Witch Control
 
Works great! One thing that would be really nice to have: some instructions that display for all Infected players when the witch spawns, about how to take control of her. Think of the epic scramble when everybody moves to take control.

Blakeocity 05-01-2010 00:01

Re: [L4D2] Witch Control
 
Quote:

i can't believe it, you are doing the impossible.
This.
Amazing work. :D

IronWarrior 05-01-2010 00:37

Re: [L4D2] Witch Control
 
Don't know how you guys are getting it to work when we still got the hunter bug. o.O

Just tired to take control of the witch and I just die....

nuwit 05-01-2010 01:27

Re: [L4D2] Witch Control
 
Quote:

Originally Posted by IronWarrior (Post 1166290)
Don't know how you guys are getting it to work when we still got the hunter bug. o.O

Just tired to take control of the witch and I just die....

me too

SilentBr 05-01-2010 01:48

Re: [L4D2] Witch Control
 
DJ West your plugin is the best, all players of my server love it, seriously you are to be congratulated for your amazing plugin.

I have a windows server, 20vs right now I'm testing your plugin, if I find a problem or bug, I will tell you.

Thank you so much :)

IronWarrior 05-01-2010 01:55

Re: [L4D2] Witch Control
 
I just been testing it again.

OK, am getting control of it, but am also in control of my old infected body.

I was watching myself as a Boomer move backwards and forwards and seeing the Witch do the same.

When I crouched, she crouched, when I stood up, she stood up.

If I pressed the action key again to lose control, I die.

The Boomer as stated before has 2000HP and can vomit like any other boomer.


All times are GMT -4. The time now is 12:46.

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