AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Request]MvM Robot stun (https://forums.alliedmods.net/showthread.php?t=311829)

JustSimpleUser 11-04-2018 05:57

[Request]MvM Robot stun
 
hello, can you make plugin that will function like mannhattan's robot stun
here's how it looks like:
robot's get condition 71, players who plays in robot team get stunned too including particle effect, tanks get stopped while stun is active, after stun finishes tanks move twice fast of their original speed, robots get crits for 10 seconds
stun lasts 22 seconds

Whai 11-04-2018 17:55

Re: [Request]MvM Robot stun
 
1 Attachment(s)
Here is a very pre-alpha made version, so there are bugs that I know and will fix maybe tomorrow afternoon (time in France) due to study.

Also the sound volume is very high so becarful.

[edit] I don't know how to multiply tank speed, I didn't understand what did you mean
Quote:

Originally Posted by JustSimpleUser (Post 2622544)
stun lasts 22 seconds


JustSimpleUser 11-05-2018 08:43

Re: [Request]MvM Robot stun
 
Thank you for the plugin and your time, "stun lasts 22 seconds" by this i mean stun ends after 22 seconds, but your timing is more correct than mine, so its ok.
Also if you post an update, can you make robot-players be affected by stun too?

Whai 11-05-2018 12:30

Re: [Request]MvM Robot stun
 
1 Attachment(s)
After some code script and test, here is the semi-final plugin.

What I just need is how to multiply the tank speed and know what the particle name of robot stunned

Try and tell me if you find bugs


Commands :
  • sm_robostun
  • sm_robotstun

ConVar :
  • sm_critduration Crit Duration (default = "10.0")

JustSimpleUser 11-05-2018 13:27

Re: [Request]MvM Robot stun
 
robot stun particle effect name: bot_radio_waves, bug: robot-players that have condition 51 cannot be stunned

Whai 11-05-2018 13:31

Re: [Request]MvM Robot stun
 
Quote:

Originally Posted by JustSimpleUser (Post 2622771)
robot stun particle effect name: bot_radio_waves, bug: robot-players that have condition 51(i guess uber too, i didn't test yet) cannot be stunned

Thanks for bug report, condition 51 is
Code:

TFCond_UberchargedHidden
I'll fix and test

Whai 11-05-2018 14:39

Re: [Request]MvM Robot stun
 
1 Attachment(s)
Added a command
-sm_stunrobot (same action)

Now with this it should works exept that you will see weapons invisible after Blu Team being stunned(bots/Blu Team doesn't lose weapons, they are just invisble, I can fix that if you want) until when they attacks, weapons will be visible. And don't know how to multiply speed you know.

Also are you sure Blu team doesn't get stunned while in conditions 51 ?


or maybe it's because I have a file that fixed that...

Here is the plugin.

Also, you can give me some features, I'll try to add and don't forget to report bug. thx

[EDIT] OH sry i didn’t notice you said «*robot-players*»

Whai 11-05-2018 16:12

Re: [Request]MvM Robot stun
 
1 Attachment(s)
Ok sry for the wait, now it should fix it and I also fixed the invisible weapon glitch.

I also fixed something that you can taunt while being stunned, now it block the user

JustSimpleUser 11-05-2018 21:32

Re: [Request]MvM Robot stun
 
thanks, i'll check when i'll be at home, here's my idea what to do with tanks, i've made a short search and found function GetKeyValue from https://forums.alliedmods.net/showthread.php?t=251247 this thread, my idea is: get tank speed value and make plugin remember it, then multiply remembered value by 2 when stun ends, also speed bonus should have same timer as crits.

JustSimpleUser 11-06-2018 07:16

Re: [Request]MvM Robot stun
 
here's bug report:
1) fixing weapons is not good idea, robot-player when regenerates lose their robot model(if model manager is installed), i think it would be better if you remove this fix, or make it ConVar.
2) when robot-player change class while stun is active, particle effect stays and new spawns.
3) plugin compile log " error 017: undefined symbol "TF_STUNFLAG_SOUND"", i found quick solution by adding "#define TF_STUNFLAG_SOUND ( 1 << 8 )", but i dont think its right.
4) if robot-players while stunned get another stun conditions like madmilk for example, their stun stops.


All times are GMT -4. The time now is 20:27.

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