AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [TF2][REQ]Monoculus! (https://forums.alliedmods.net/showthread.php?t=239169)

Benoist3012 04-23-2014 05:04

[TF2][REQ]Monoculus!
 
Hello everyone, I'm looking for a way to stun monoculus, but I have no clue on how to do it, could you help me please?

Benoist3012 04-23-2014 11:35

Re: [TF2][REQ]Monoculus!
 
I got an idea, the plugin could create a prop dynamic with the Model Monoculus and its default animation are stun, the true Monoculus is teleported at the bottom of map, after the animation is done, the prop dynamic is destroyed and Monoculus! is teleported back at its last place.

I'm french, and sorry for my bad english!

Oshizu 04-25-2014 14:28

Re: [TF2][REQ]Monoculus!
 
2 Attachment(s)
You shouldn't bump your thread so often.

Thought about stun monoculus command, it shouldn't be hard to be done either way
By teleporting or by forcing stun

I might try to write some plugin for you in around a hour
Hopefully it will workout


A test version of plugin is done:
Put .smx in plugins folder
Put .txt in gamedata folder
Restart server

Commands:
sm_monostun
sm_monostun2

One of them might work
I was unable to test plugin yet so it might crash or not work at all

Benoist3012 04-26-2014 08:02

Re: [TF2][REQ]Monoculus!
 
This plugin does not stun Monoculus! And how have you found this number => "SDKCall(hStunMono, entity, 1101004800)" ??

Oshizu 04-26-2014 08:20

Re: [TF2][REQ]Monoculus!
 
Quote:

Originally Posted by Benoist3012 (Post 2129843)
This plugin does not stun Monoculus! And how have you found this number => "SDKCall(hStunMono, entity, 1101004800)" ??

TF2 Server Binary

Benoist3012 04-26-2014 10:37

Re: [TF2][REQ]Monoculus!
 
I have a TF2 Server but i see just this: HALLOWEEN: "MySteamID<2><Blue>" eyeball_stunned with "widowmaker" <attacker_postion "-720 47 270">.

Monoculus is stun because i went i hell and i fired Monoculus!
I don't see your number.

Edit (from 2017): I must have been tired that day, and probably only read TF2 Server. lol

Oshizu 04-26-2014 10:48

Re: [TF2][REQ]Monoculus!
 
Quote:

Originally Posted by Benoist3012 (Post 2129901)
I have a TF2 Server but i see just this: HALLOWEEN: "MySteamID<2><Blue>" eyeball_stunned with "widowmaker" <attacker_postion "-720 47 270">.

Monoculus is stun because i went i hell and i fired Monoculus!
I don't see your number.

Server Binary is server.bin or server_srv.so rukia
Simply said it's something like browsing Team Fortress 2 Source Code

https://dl.dropboxusercontent.com/u/266564616/testo.jpg

Powerlord 04-27-2014 09:03

Re: [TF2][REQ]Monoculus!
 
Chances are that 1084227584 are actually a set of damage codes. Specifically, its 1 << 21 | 1 << 23 | 1 << 30... for damage codes, that would be DMG_SLOWBURN | DMG_PHYSGUN | an unknown damage type 1 higher than the last one in shareddefs.h

1101004800 is the same thing, but with bit 1 << 24 (DMG_PLASMA) also set.

friagram 04-28-2014 06:52

Re: [TF2][REQ]Monoculus!
 
Wtb windows symbols

Benoist3012 04-29-2017 04:36

Re: [TF2][REQ]Monoculus!
 
!Bumping! Just answering my own request, I found how stun Monoculus last year, and I found this thread today, and I figured I would answer it, so perhaps it can help someone who also wants to stun monoculus :bacon!:

There's simply an hidden prop, that tells for how long you are "hell buffed" if you escaped the underworld on eyeaduct.

To locate it, just offset the m_iKartHealth prop by 20.
Code:
g_m_Hell_Buffed = LookupOffset("CTFPlayer","m_iKartHealth")+20;
Code:
SetEntDataFloat(iClient, g_m_Hell_Buffed, GetGameTime()+4.0, true);

With that code, after setting the prop if the client dmg monoculus in the 4 next seconds, monoculus will get stunned.

Code:
stock int LookupOffset(const char[] strClass, const char[] strProp) {     int iOffset = FindSendPropInfo(strClass, strProp);     if(iOffset <= 0)         SetFailState("Could not find offset for %s::%s. Use a different property name (and update your offsets).", strClass, strProp);     return iOffset; }

That's all :bacon:


All times are GMT -4. The time now is 22:47.

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