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

[Request]MvM Robot stun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 11-04-2018 , 05:57   [Request]MvM Robot stun
Reply With Quote #1

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
JustSimpleUser is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-04-2018 , 17:55   Re: [Request]MvM Robot stun
Reply With Quote #2

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 View Post
stun lasts 22 seconds
Attached Files
File Type: sp Get Plugin or Get Source (mvmstun.sp - 115 views - 2.7 KB)
__________________

Last edited by Whai; 11-04-2018 at 18:08.
Whai is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 11-05-2018 , 08:43   Re: [Request]MvM Robot stun
Reply With Quote #3

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?

Last edited by JustSimpleUser; 11-05-2018 at 09:10. Reason: addition(x2)
JustSimpleUser is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-05-2018 , 12:30   Re: [Request]MvM Robot stun
Reply With Quote #4

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")
Attached Files
File Type: sp Get Plugin or Get Source (mvmstun.sp - 113 views - 6.2 KB)
__________________

Last edited by Whai; 11-05-2018 at 12:32.
Whai is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 11-05-2018 , 13:27   Re: [Request]MvM Robot stun
Reply With Quote #5

robot stun particle effect name: bot_radio_waves, bug: robot-players that have condition 51 cannot be stunned

Last edited by JustSimpleUser; 11-05-2018 at 13:34. Reason: correction
JustSimpleUser is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-05-2018 , 13:31   Re: [Request]MvM Robot stun
Reply With Quote #6

Quote:
Originally Posted by JustSimpleUser View Post
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 is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-05-2018 , 14:39   Re: [Request]MvM Robot stun
Reply With Quote #7

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 ?
Spoiler


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*»
Attached Files
File Type: sp Get Plugin or Get Source (mvmstun.sp - 96 views - 8.0 KB)
__________________

Last edited by Whai; 11-05-2018 at 14:56.
Whai is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-05-2018 , 16:12   Re: [Request]MvM Robot stun
Reply With Quote #8

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
Attached Files
File Type: sp Get Plugin or Get Source (mvmstun.sp - 93 views - 11.2 KB)
__________________

Last edited by Whai; 11-05-2018 at 17:35.
Whai is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 11-05-2018 , 21:32   Re: [Request]MvM Robot stun
Reply With Quote #9

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.

Last edited by JustSimpleUser; 11-06-2018 at 03:26. Reason: addition(x2)
JustSimpleUser is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 11-06-2018 , 07:16   Re: [Request]MvM Robot stun
Reply With Quote #10

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.

Last edited by JustSimpleUser; 11-06-2018 at 07:44. Reason: addition
JustSimpleUser 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 01:03.


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