AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] [L4D2] Infected Spawn API v1.6.1 (https://forums.alliedmods.net/showthread.php?t=114979)

AtomicStryker 01-21-2010 17:34

Re: [L4D2] Infected Spawn API
 
Why dont you fix up the Infected Bots Plugin? MI5 stopped working on it, and it seems like your kind of project ;)

V10 01-21-2010 18:31

Re: [L4D2] Infected Spawn API
 
Quote:

Originally Posted by AtomicStryker (Post 1062794)
Why dont you fix up the Infected Bots Plugin? MI5 stopped working on it, and it seems like your kind of project ;)

Probably no time.
But you can do it. =)

Downtown1 01-25-2010 03:04

Re: [L4D2] Infected Spawn API v1.3
 
Thanks for the OnEnterGhostState Windows signature, I used it in Left4Downtown 0.4.6 (it can also now remove auto spawns in finale) to save more than a few minutes!

Delroton 01-30-2010 10:19

Re: [L4D2] Infected Spawn API v1.3
 
Hi!
I'm new to mods and SM. But I have a question, is it possible to configure this into forcing hunter only spawns?

Thanks in advance

dirka_dirka 01-30-2010 11:38

Re: [L4D2] Infected Spawn API v1.3
 
if you only want hunters, just adjust the z_XXX_limit cvars so thats theres 0 boomers, smokers, etc and at least 4 hunters.

Delroton 01-30-2010 12:14

Re: [L4D2] Infected Spawn API v1.3
 
Quote:

Originally Posted by dirka_dirka (Post 1072947)
if you only want hunters, just adjust the z_XXX_limit cvars so thats theres 0 boomers, smokers, etc and at least 4 hunters.

That does not work! (If you've tested it personally and it did work for you please tell me, and I would know if its just my server.. )
Also tried setting the cvars to "-1". I guess 0 means infinite.

Marcus101RR 01-30-2010 19:29

Re: [L4D2] Infected Spawn API v1.3
 
Does this fix the amount of infected that can exist at one time?

V10 02-01-2010 21:51

Re: [L4D2] Infected Spawn API v1.3
 
Quote:

Originally Posted by Delroton (Post 1072849)
Hi!
I'm new to mods and SM. But I have a question, is it possible to configure this into forcing hunter only spawns?

Thanks in advance

See code of InfectedFixSpawn plugin http://forums.alliedmods.net/showthread.php?t=114954
for create plugin who changes class to hunter

AtomicStryker 02-21-2010 12:02

Re: [INC] L4D2 Infected Spawn API v1.3
 
PHP Code:

            /*  CTerrorPlayer::OnEnterGhostState(client)   */

            
"OnEnterGhostState"
            
{
                
"library"    "server"
                "windows"    "\x53\x55\x56\x8B\xF1\x8B\x86\xB0\x3A\x00\x00\x8B\x50\x0C\x8D\x8E" 
//found by V10
                
"linux"        "@_ZN13CTerrorPlayer17OnEnterGhostStateEv"

            


That sig is wrong, mate. In Bytes it is:

PHP Code:

53 55 56 8B F1 8B 86 B0 3A 00 00 8B 50 0C 8D 8E 

You have to leave wildcards at Bytes that may change - as they have in Valves last patch.

PHP Code:

53 55 56 8B F1 8B 86 ? ? ? ? 8B 50 8D 8E ? ? ? ? 57 

Take this here Sig:

PHP Code:

            /*  CTerrorPlayer::OnEnterGhostState(client)   */
            /* 53 55 56 8B F1 8B 86 ? ? ? ? 8B 50 ? 8D 8E ? ? ? ? 57 */

            
"OnEnterGhostState"
            
{
                
"library"    "server"
                "windows"    "\x53\x55\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x8B\x50\x2A\x8D\x8E\x2A\x2A\x2A\x2A\x57"
                "linux"        "@_ZN13CTerrorPlayer17OnEnterGhostStateEv"
            



AtomicStryker 02-21-2010 12:42

Re: [INC] L4D2 Infected Spawn API v1.3
 
Addendum:

While that Sig is 100% correct, it appears Valve removed that function or it isnt loaded anymore. I suggest you update your API to only use default ghosting, even during finale.


All times are GMT -4. The time now is 18:25.

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