AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Left FORT Dead builder (https://forums.alliedmods.net/showthread.php?t=93716)

Boikinov 06-01-2009 07:55

[L4D] Left FORT Dead builder
 
2 Attachment(s)
Description:
You may already known a plugin called Build_Enabler which removed cheat flag of these commands required to spawn item

This plugin also allow you build item without cheat enable
Instead of override system command like Build_Enabler did, my plugin implemented all the function in new console command, so you won't encounter potential plugin conflict
Additionally, I made the new spawn item command more flexible to use( e.g. a well placed stairs just in front of you and ready to be climbed / a sand bag corner shields you in perfect angle right after spawned )

Beside general prop_dynamic/prop_physics item, this plugin also support spawn some kind of interactivable item, like the ammo stack, iron door, minigun( love spawnminigun.smx? then try this one)
And more will be added in future version

Command:
leftfortdead_rotate --------------- just like ent_rotate, a self made version
leftfortdead_remove --------------just like ent_remove, but won't delete players by accident

leftfortdead_spawnitem <d|p> <a|i> "*.mdl" [-1|1]
d: spawn as prop_dynamic
p: spawn as prop_physics
a: spawn at where you aim( just like prop_dynamic_create)
i: spawn in front of you
*.mdl: just go for a prop list and find something interesting
-1: align the angle of spawned item and show its back to you
1: same as above, but show the front to you
without[-1:1]: item will aligned in default angle(similar to prop_dynamic_create)

leftfortdead_spawnminigun ---------------spawn a minigun at where you aim, aligned to your view direction
can be properly rotated by leftfortdead_rotate

leftfortdead_spawnammostack --------------spawn ammo supply at where you aim
model will randomly chose between ammostack and coffee ammo

leftfortdead_spawnirondoor -----------------spawn an iron door(unbreakable saferoom door) at where you aim
the door will face you when spawned, unless you spawn it on wall
the door will be automatically placed perpendicular to wall, and will align its bottom to floor or top to ceiling

CVAR:
leftfortdead_version ------------------version of this plugin
leftfortdead_enabled -----------------set to 1 will enable all other command, default value is 0, means disabled
leftfortdead_adminonly ------------------ set to 1 will only allow admin use all the command, default value is 1, means anyone in game can use the commands

I uploaded a Sample RadialMenu.txt, you can add it to your Radial Menu or create a custom one with anything you want to quickly spawn

Sorry I didn't publish version 1.0 here, it is published somewhere else and was in other language

Changelist:
1.1.0
removed all overrided command, implemented everything needed in new command
added command: leftfortdead_rotate, just like ent_rotate
added command: leftfortdead_spawnirondoor, spawn a interactivable door
added command: leftfortdead_spawnitem to replace the overrided prop_dynamic_create and prop_physics_create, provide more parameters
added cvar: leftfortdead_enabled

1.0.1
support singleplayer mode and game hosted with "map" command
change default value of adminonly cvar to 0

1.0
Initial release

zero4u 06-01-2009 11:57

Re: [L4D] Left FORT Dead builder
 
is it posible to add these to a admin menu item instead of a client sided menu?

Boikinov 06-01-2009 21:27

Re: [L4D] Left FORT Dead builder
 
Quote:

Originally Posted by zero4u (Post 839563)
is it posible to add these to a admin menu item instead of a client sided menu?

That is exactly what I want to do, so any new joined player can build some default item without binding shortcut key

But I don't know what to do yet, some advice?

TESLA-X4 06-01-2009 23:47

Re: [L4D] Left FORT Dead builder
 
1 Attachment(s)
I'm not sure if L4D allows servers to force the 'bind' command on clients by default, but anyway here's a test plugin to allow you to check if it is indeed allowed since I haven't got a L4D server to test it on. Unbind your slot1 - slot10 keys first before joining the server to be sure it it works. If it does, the keys should be bound again.

Hope this helps

Boikinov 06-02-2009 01:59

Re: [L4D] Left FORT Dead builder
 
You can create a local dedicated server and join to test as a client

TESLA-X4 06-02-2009 07:58

Re: [L4D] Left FORT Dead builder
 
If you're talking about setting up a listen server using the maps command, then it's really not going to prove anything - listen servers are different from normal servers because the client itself is the server. Therefore, client commands/convars that are normally not changable from a dedicated server can be changed on a listen server. Scratch that, I'm blind.

Also, I'm lazy to have to download a full server for it, and my net connection isn't exactly fast either...

Boikinov 06-02-2009 21:30

Re: [L4D] Left FORT Dead builder
 
You can download the L4D Dedicated Server Tool in a few minutes if you already downloaded L4D Game.
They will be put in the same folder and most of the file are shared between them.

Too bad, The others from internet cannot join my dedicated server, only those in LAN could, and I am the only one behind the router.... :(

TESLA-X4 06-03-2009 02:10

Re: [L4D] Left FORT Dead builder
 
Checklist:
1. Got ports 27000-27015 forwarded on the router (if you can't find your exact model, try one with a similar model number, it might be very similar)?
2. sv_lan 0

I didn't know about the L4D dedicated server sharing files with the client though, guess I'm too used to the old hldsupdatetool.exe/srcds.exe way...

leonil7 06-03-2009 07:56

Re: [L4D] Left FORT Dead builder
 
anychance you can build a drum with flame on it?

Boikinov 06-03-2009 21:06

Re: [L4D] Left FORT Dead builder
 
Quote:

Originally Posted by leonil7 (Post 840654)
anychance you can build a drum with flame on it?

Good Idea, try it now


All times are GMT -4. The time now is 19:27.

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