[L4D2] Spit glob spawner plugin request
It sounds easy enough but apparently it isn't, or I'd assume it would have been put up somewhere by now that I would have been able to find more easily than my fruitless searches turned up.
I'm creating a project in Left 4 Dead 2 that is currently in a moderately dire need of a specific feature: Spit spawning. The most malleable and useful way would be to launch it from your player like an actual spitter attack, but triggered by a console command instead. I recall having a plugin years ago that was able to spawn spit at your feet. Might have been the sm_acidspill that https://forums.alliedmods.net/showthread.php?p=1251446 used to have functioning, but that would simply spawn acid either at your feet or I believe where you were looking at the time. Being an advanced mapper but a less-than-novice coder, does anybody know how to pull this off? It would need to be spammable, meaning using the feature excessively (anywhere from 3 to 10 times in a 2-second time period) does not cause strain on performance. To whomever might be up to it: What can we pull off here? |
Re: [L4D2] Spit glob spawner plugin request
As promised, here is something I have worked on. It is a stock function for spawning spitter projectiles as wanted.
Unfortunately I am a total newbie when it comes to signature scanning in Windows. I have attached the sub routine instructions but I do not know the method to extract the signature. I have given it my best guess with it but there is no guarantees it works, however signature is unique. I do not have a Windows server at hand. Please let me know if it works. Works great in Linux with no problems. Include provides 2 stock functions. PHP Code:
See Spitter Projectile Include thread for download. |
Re: [L4D2] Spit glob spawner plugin request
I don't exactly understand how to test this. I don't know what .inc files are or how to use them, I just know where they are supposed to go for installation. I am not a coder and have no idea how to piece together anything you've created here. How exactly can I test this on my windows server?
|
Re: [L4D2] Spit glob spawner plugin request
The include files go into your local scripting folder. Gamedata goes to your servers gamedata folder.
Then you can use the included functions. Here is the test script I used. PHP Code:
|
Re: [L4D2] Spit glob spawner plugin request
Quote:
I'm still lost. What do you mean "use the include file"? I don't know how to use the .inc files, I assumed they were side files the game is told to use automatically by a specific plugin. How do create a script to utilize the .inc file? Pasting your supplied test-script code into a .sp and compiling it into a .smx didn't work so I don't understand. I have never touched code in my life, I've only used it. If compiling IS what you meant, I got the following error: error 021: symbol already defined: "OnPluginStart" |
Re: [L4D2] Spit glob spawner plugin request
1 Attachment(s)
Quote:
If you wish to compile a plugin yourself I would consider reading the wiki as it contains everything you could possibly need. Otherwise if you know exactly how you want this spitter projectile plugin, then I will gladly compile you a plugin. Attached is a simple admin plugin that allows spawning of spitter projectiles using the commands sm_throwspit and sm_createspit. Code:
sm_throwspit <#userid|name> [velocity] - Throws a spitter projectile as a Spitter Special Infected would. Gamedata from the above spitter projectile include is still required on the server! |
Re: [L4D2] Spit glob spawner plugin request
Quote:
The commands load up in console, but when typed it it appears their function does not... function. It says [SM] Forced <user> to throw spit. However, no actual spit is ejected from the player nor spawned at their feet with either command. It even says that message when I use the sm_createspit command but I'm sure that's on purpose and doesn't actually matter. If you can't think of what might be wrong I suppose I could try a fresh install of sourcemod and use just this plugin, which should tell me that I have a confliction of some sort. Edit: And now that I think about actually applying this, what would be a lovely addition is if the throwspit command in particular made the hock-up sound from the player who "threw" the spit. On top of this, a variable to turn this off should it be annoying to others would also be lovely. A new command to turn on and off the actual spitter spit noise for the sm_throwspit command. If it as simple as I hope it is, would you mind? |
All times are GMT -4. The time now is 08:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.