AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [CS:S] Flashbang Tools (https://forums.alliedmods.net/showthread.php?t=159876)

Dr!fter 09-25-2013 09:57

Re: [CS:S] Flashbang Tools
 
Code:

"Games"
{
        "cstrike"
        {
                "Signatures"
                {
                        "Deafen"
                        {
                                "library"                "server"
                                "windows"                "\x55\x8B\xEC\x83\xEC\x28\x89\x4D\xD8\x8B\x45\xD8\x8B\x10\x8B\x4D\xD8"
                                "linux"                        "@_ZN9CCSPlayer6DeafenEf"
                        }
                        "CFlashbangProjectile::Detonate"
                        {
                                "library"                "server"
                                "windows"                "\x53\x56\x8B\xF1\x8B\x86\x00\x01\x00\x00\xC1\xE8\x0B\x57\xA8\x01\x74\x2A\xE8\x2A\x2A\x2A\x2A\xF3\x0F\x10\x05\x2A\x2A\x2A\x2A\x6A\x40"
                                "linux"                        "@_ZN20CFlashbangProjectile8DetonateEv"
                        }
                        "PercentageOfFlashForPlayer"
                        {
                                "library"                "server"
                                "windows"                "\x55\x8B\xEC\x81\xEC\xB0\x00\x00\x00\x56\x8B\x75\x08\x8B\x06"
                                "linux"                        "@_Z26PercentageOfFlashForPlayerP11CBaseEntity6VectorS0_"
                        }

                }
        }
}


kadet.89 09-28-2013 04:14

Re: [CS:S] Flashbang Tools
 
Dr!fter, how did you find a description of these functions (prototypes ...e.t.c)?

RedSword 09-28-2013 12:45

Re: [CS:S] Flashbang Tools
 
Using a hex editor (probably IDA : Hex Rays) and searching in the linux server binary. Function names are present so it's that hard to find a function you want.

ProdigySim has streamed himself doing some sig scanning. i.e. http://www.twitch.tv/prodigysim/c/2536037

There are also threads on the subject in the forum.

kadet.89 10-05-2013 09:01

Re: [CS:S] Flashbang Tools
 
3 Attachment(s)
PHP Code:

/**
* @param client        The hegrenade entity

* @return             Plugin_Handled or higher to block. Anything else to ignore
*  
*/
forward Action:OnHEDetonate(entity);


/**
* @param client        The grenade entity

* @return             Plugin_Handled or higher to block. Anything else to ignore
*  
*/
forward Action:OnGrenadeSpawn(entity); 

replace grenade model:

falafili 01-18-2014 09:43

Re: [CS:S] Flashbang Tools
 
Hi all!
I have some troubles with loading this extension:
L 01/18/2014 - 18:28:41: [SM] Unable to load extension "flashtools.ext": /lib32/libm.so.6: version `GLIBC_2.15' not found (required by bin/libvstdlib.so)
Server's working on linux and that's why it causes such error, is not it?
Hope u will help =)

Desura 02-03-2014 04:50

Re: [CS:S] Flashbang Tools
 
Can we add flash duration?

Bacardi 02-07-2014 07:43

Re: [CS:S] Flashbang Tools
 
Quote:

Originally Posted by Desura (Post 2094664)
Can we add flash duration?

Hook event "player_blind" to get player who get blinded by flashbang.
Then change player propertie "m_flFlashDuration"
PHP Code:

new Float:duration GetEntPropFloat(clientProp_Send"m_flFlashDuration");
duration += 5.0// 5 seconds longer blind
SetEntPropFloat(clientProp_Send"m_flFlashDuration"duration); 


josegold 02-19-2014 11:52

Re: [CS:S] Flashbang Tools
 
This came to me helpfully, good

Schneemann 02-22-2014 13:40

Re: [CS:S] Flashbang Tools
 
Hello:)
I use this plugin in combination with Trikz Redux 1.7.2 and get some trouble.
little question, the server always crash after I toggled "auto flash", or/and "auto switch".

Sourcemod version: 1.6.0-hg4254 (tested with sm v. 1.5.3-hg3997 too)
Timer 2.0.6 fixed
Trikz Redux 1.7.2
Flashbang Tools: Flashbang Tools 0.0.3 & newst gamedata

Till now, I didn't found any solution for my problem.

Greetz
Schnee

poppin-fresh 04-20-2014 05:35

Re: [CS:S] Flashbang Tools
 
Hey, Todays update has seemed to break the plugin. I've updated sourcemod so it must be gamedata? This still works fine on my linux (debian) server but seems to be broken on windows

L 04/20/2014 - 17:19:05: [CSTRIKE] Sigscan for TerminateRound failed - Disabling detour to prevent crashes
L 04/20/2014 - 17:19:05: [CSTRIKE] TerminateRound detour could not be initialized - Disabled OnTerminateRound forward
L 04/20/2014 - 17:19:05: [FBTOOLS] Sigscan for CFlashbangProjectile::Detonate failed - Disabling detour to prevent crashes
L 04/20/2014 - 17:19:05: [FBTOOLS] CFlashbangProjectile::Detonate detour could not be initialized - Disabled OnFlashDetonate forward


All times are GMT -4. The time now is 01:56.

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