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

[L4D & L4D2] Intelligent Machine Gun


Post New Thread Reply   
 
Thread Tools Display Modes
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-13-2011 , 12:54   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #11

Quote:
Originally Posted by megaquake View Post
Hey thanks it worked realy great, but I guess I have a bug and most likely cause my server runs survival, this is the second day and nobody is able to spawn the gun, it will say too many machine when you try to spawn one, I increased the amount allowed and then was able to spawn more, but now just cant spawn any even after map change.

If you need more info about what is running on my server let me know!

BTW the tankrock plugin works great on my server, no errors or crashes hm it crashes my versus server tho

Thanks allot for all your hard work,

Mega
Thank you, the spawn problem have been solved.
If you have some problmes or suggustions, please tell me.
Because I have little time to play , I dno not know tankrock plugin carsh server, I will test it more and improve it.
panxiaohai is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-13-2011 , 12:57   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #12

Quote:
Originally Posted by ur5efj View Post
Compiling l4d_machine.sp ...SourcePawn Compiler 1.3.9-dev
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

l4d_machine.sp(128 ) : warning 204: symbol is assigned a value that is never used: "button"
l4d_machine.sp(162) : warning 204: symbol is assigned a value that is never used: "bot"
l4d_machine.sp(1098 ) : warning 204: symbol is assigned a value that is never used: "hit"
l4d_machine.sp(1202) : warning 203: symbol is never used: "CheckAngle"
l4d_machine.sp(63) : warning 203: symbol is never used: "GunAngle"
l4d_machine.sp(68 ) : warning 203: symbol is never used: "LastButton"
l4d_machine.sp(68 -- 1202) : warning 203: symbol is never used: "PrintVector"
l4d_machine.sp(68 -- 1202) : warning 203: symbol is never used: "SetVectorOffest"
l4d_machine.sp(68 -- 1202) : warning 203: symbol is never used: "ShowAngle"
l4d_machine.sp(68 -- 1202) : warning 203: symbol is never used: "ShowDir"
l4d_machine.sp(68 -- 1202) : warning 203: symbol is never used: "StopClientCarry"
l4d_machine.sp(100) : warning 204: symbol is assigned a value that is never used: "g_iVelocity"
Header size: 4780 bytes
Code size: 30344 bytes
Data size: 9612 bytes
Stack/heap size: 16384 bytes; Total requirements: 61120 bytes

12 Warnings.

This is some code useful to me when I test the plugin, I do not want to get rid of them for the convenience of test.
panxiaohai is offline
Optics233
Member
Join Date: Nov 2010
Old 08-13-2011 , 12:58   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #13

This plugin is AMAZING! I LOVE it!

Suggestions:

1) cvar so only admin can use !machine please

2) Make it so zombies can attack / "incap" machine guns? Have you ever played half life 2? In there enemies can knock over sentry guns and people have to set them up again.

If possible it'd be cool if these guns could be knocked over and players had to set them up again. or if zombies could kill the machine gun.

3) Command to remove machine guns. !Removemachine or something. So when I use it any gun I look at is removed.

Great work!

Last edited by Optics233; 08-13-2011 at 13:00.
Optics233 is offline
Elektramode
Senior Member
Join Date: Mar 2010
Old 08-13-2011 , 19:29   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #14

I'v noticed a major problem with the plugin is that it lags up my players on my server by almost 1.5 times, is there any way to optimize the code and make it less laggy for future updates?
Elektramode is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-13-2011 , 19:35   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #15

Quote:
Originally Posted by Elektramode View Post
I'v noticed a major problem with the plugin is that it lags up my players on my server by almost 1.5 times, is there any way to optimize the code and make it less laggy for future updates?
Thank you, can be optimizd.
How many gun did you use at the same time ? Did it lag when the gun is not shot?
panxiaohai is offline
Elektramode
Senior Member
Join Date: Mar 2010
Old 08-14-2011 , 10:18   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #16

Quote:
Originally Posted by panxiaohai View Post
Thank you, can be optimizd.
How many gun did you use at the same time ? Did it lag when the gun is not shot?
When the guns are not shooting then its fine, it seems to start lagging for me after 2 guns are spawned (We can see this by the ping increase which goes up for some of my players by 20-30 ping) when the guns are not shooting and still all is good. (BTW I used 5 guns at once, so thats probably why the lag is there ) Otherwise, I hope you optimize it a bit so it produces as less lag as possible, as of now I will only spawn 1-2 miniguns.
Elektramode is offline
TheSuggestioner
Member
Join Date: Aug 2011
Location: USA, Connecticut
Old 08-14-2011 , 11:34   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #17

Pretty good, but can you make it admin-only? For example add a cvar:

Code:
machine_admin_only 0/1
and the features of admin only -

Admin's can only pick up machines they spawned.
Admins can only spawn machine guns.

And add more options. Here are some of my ideas:

Code:
machine_backpack_enable 0/1
//Enables carrying machine (Default 1)

machine_ammo_refill 0/1
//Able to run out of ammo. Press DUCK [Default CTRL] to take some ammo out of your gun to refill it. (Default 0)
The plugin is very cool by the way. :O
__________________
Roses are Red
Violets are blue,
Not a big surprise
If a Tank kills you!
TheSuggestioner is offline
Chronic1
SourceMod Donor
Join Date: Jun 2011
Old 08-14-2011 , 13:26   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #18

Yes, please make this admin only. Players are spawning them in narrow corridors and blocking the tanks on my server.
Chronic1 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-14-2011 , 15:04   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #19

The english name is "Portable/Deployable Sentry Gun". Intelligent Machine Gun sounds really funny. Perhaps you could rename it.
AtomicStryker is offline
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 08-14-2011 , 18:46   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #20

Using two machine guns and no lag problem.

Well, I found few bugs:
- If you are carrying the machine gun, you canīt use right button to hit zombies. It has no effect.

- If you are carrying the machine gun and throw a pipe or bile jar, they hit the machine gun and fall in your own feet.

Great plugin Panxiaohai!
Zbeer 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 03:12.


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