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

[L4D & L4D2] SM Respawn command


Post New Thread Reply   
 
Thread Tools Display Modes
gward
Member
Join Date: May 2009
Old 07-18-2009 , 12:03   Re: [L4D] SM Respawn command plugin 1.2 (SDK call)
Reply With Quote #31

LOL I'm a noob and was missing a closing bracket. This thing is hilarious though. Spawn people super high in the air or on buildings for some fun.
gward is offline
Ydiss
Member
Join Date: Jan 2009
Old 07-18-2009 , 13:34   Re: [L4D] SM Respawn command plugin
Reply With Quote #32

Quote:
Originally Posted by fgriasa View Post
Some player's name is very complex
Use HLSW, right click their name on the admin screen, copy > name - job done.
Ydiss is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 07-18-2009 , 14:52   Re: [L4D] SM Respawn command plugin 1.2 (SDK call)
Reply With Quote #33

Quote:
Originally Posted by AtomicStryker View Post
It worked with any of my Windows versions, from 1.2, snapshots of 1.2.1 and now snapshots of 1.3.

Find another plugin with an SDK call and see if that works for you.
Let's say it doesn't. Why wouldn't it?
crazydog is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 07-18-2009 , 15:38   Re: [L4D] SM Respawn command plugin 1.2 (SDK call)
Reply With Quote #34

Never ask a Master in the Art of Self Quotation to answer a question he already answered ... SHAZAM!


Quote:
Originally Posted by AtomicStryker View Post
[...}the one reason i see why this shouldn't work is that your Sourcemod can't execute the SDK call. So you use 1.2.1 ... you could TRY a 1.3 Snapshot, or ask one of the Sourcemod Devs about this. Probably Fyren
AtomicStryker is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-02-2009 , 09:16   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #35

New version 1.3 added. Only change: A gamedata file is no longer needed.
AtomicStryker is offline
BertieB
Junior Member
Join Date: Aug 2009
Location: Glasgow
Old 08-03-2009 , 16:11   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #36

AtomicStryker: I am also having troubles getting this plugin to work. I have tried both 1.2 and 1.3. Oddly, sm plugins list gives "L4D SM Respawn" (1.2) by AtomicStryker rather than 1.3.

I am running SourceMod version 1.2.1 on a Linux server. I'm not sure about whether SDK calls work - I can successfully use the L4D "Switch players" plugin (http://forums.alliedmods.net/showthread.php?t=83950) which I think uses SDK call(s).

The only console message I see when respawning is:
L 08/03/2009 - 21:08:04: [l4d_sm_respawn.smx] "BertieB<262><STEAM_1:1:0000000><>" teleported "Louis<271><BOT><>" after respawning him

This doesn't respawn the bot however. Calling it on an alive survivor teleports them to the cursor though.

Any thoughts?
BertieB is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-03-2009 , 17:57   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #37

If BOTH 1.2 and 1.3 (version display wasnt updated, my bad) failed for you, SDK calling altogether doesnt seem to work for you. Switchplayers just uses Fake Execute.
AtomicStryker is offline
BertieB
Junior Member
Join Date: Aug 2009
Location: Glasgow
Old 08-03-2009 , 19:16   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #38

Quote:
Originally Posted by AtomicStryker View Post
If BOTH 1.2 and 1.3 (version display wasnt updated, my bad) failed for you, SDK calling altogether doesnt seem to work for you. Switchplayers just uses Fake Execute.
Right. So is using a dev snapshot of SM my only way of getting this to work, rather than 1.2.1? Or is there an option I can enable? I'm just a little wary of using a developmental snapshot on an otherwise-stable server.

FWIW I'm using MM v1.7.1. If you need any other output let me know and I will post it.
BertieB is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-03-2009 , 19:37   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #39

PHP Code:
    //*********************************************************************************************************************************************
    
new OS;
    
StartPrepSDKCall(SDKCall_Player);
    if (!
PrepSDKCall_SetSignature(SDKLibrary_Server"\xA1****\x83***\x57\x8B\xF9\x0F*****\x8B***\x56\x51\xE8****\x8B\xF0\x83\xC4\x04"34)) 
    {
        
OS 2// LINUX
        
PrepSDKCall_SetSignature(SDKLibrary_Server"@_ZN13CTerrorPlayer10AddUpgradeE19SurvivorUpgradeType"0);
    }
    else
    {
        
OS 1// WINDOWS
    
}
    
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_ByValue);
    new 
Handle:AddUpgrade EndPrepSDKCall();
    
CloseHandle(AddUpgrade); // Its just a dummy function to determine server OS
    //**********************************************************************************************************************************************
    
    
StartPrepSDKCall(SDKCall_Player);
    if (
OS==1PrepSDKCall_SetVirtual(488);
    if (
OS==2PrepSDKCall_SetVirtual(489);
    
hRoundRespawn EndPrepSDKCall(); 
How ridiculous that is just to avoid the use of a gamedata file. Not only is extra work done, but now the plugin will even break if a function it does not even directly need gets moved (the add upgrade sig) in addition to if the offset it actually does use changes.
psychonic is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-04-2009 , 11:08   Re: [L4D] SM Respawn command plugin (SDK call)
Reply With Quote #40

I'm quite pissed about that myself (see the Scripting Thread) but the Sourcemod Devs apparently love gamedata files.

Same arguments here:
If the Offset is moved, an update is needed anyway.
One file is a lot harder for people to install incorrectly. You wouldn't believe the amount of PMs of people who didnt manage.
AtomicStryker 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 22:15.


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