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

[L4D] Spawn Minigun


Post New Thread Reply   
 
Thread Tools Display Modes
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 03-10-2009 , 16:40   Re: [L4D] Spawn Minigun
Reply With Quote #11

i tryed this and when it spawned it was facing towards the wall but it shot me lol
__________________
{7~11} TROLL is offline
ApocalypseDan
Member
Join Date: Jan 2009
Old 03-10-2009 , 18:19   Re: [L4D] Spawn Minigun
Reply With Quote #12

Yes Direction is set no matter if you rotate it or not it will only fire in the 1 direction also burried. But Still A good plugin Thanks
__________________
ApocalypseDan is offline
Frozenology
Junior Member
Join Date: Mar 2009
Old 03-12-2009 , 00:23   Re: [L4D] Spawn Minigun
Reply With Quote #13

Thanks for Minigun code.
I solve about the direction, so you have to add these code to set angles

PHP Code:
public Action:Command_MiniGun(clientargs)
{
    
decl Float:VecOrigin[3], Float:VecAngles[3], Float:VecDirection[3];
    
GetClientAbsOrigin(clientVecOrigin);
    
GetClientEyeAngles(clientVecAngles);
    
GetAngleVectors(VecAnglesVecDirectionNULL_VECTORNULL_VECTOR);
    
VecOrigin[0] += VecDirection[0] * 32;
    
VecOrigin[1] += VecDirection[1] * 32;
    
VecOrigin[2] += VecDirection[2] * 32;              
    new 
ent CreateEntityByName "prop_minigun");    
    
DispatchKeyValue(ent"model""Minigun_1");
    
SetEntityModel (ent"models/w_models/weapons/w_minigun.mdl")
    
DispatchKeyValueFloat (ent"MaxPitch"40.00);
    
DispatchKeyValueFloat (ent"MinPitch", -30.00);
    
DispatchKeyValueFloat (ent"MaxYaw"90.00);    
    
VecAngles[0] = 0.0;
    
VecAngles[2] = 0.0;
    
DispatchKeyValueVector(ent"Angles"VecAngles);
    
DispatchSpawn(ent);
    
TeleportEntity(entVecOriginNULL_VECTORNULL_VECTOR);


Last edited by Frozenology; 03-12-2009 at 00:37.
Frozenology is offline
antihacker
Member
Join Date: Feb 2009
Old 03-12-2009 , 12:00   Re: [L4D] Spawn Minigun
Reply With Quote #14

@Frozenology:
Thanks for the code, i added it to new version.

Look at the first post, version 0.2 released!

Hope you like it more
antihacker is offline
mikercool
Member
Join Date: Feb 2009
Old 03-12-2009 , 16:09   Re: [L4D] Spawn Minigun
Reply With Quote #15

Can you make it spawn right in front of you? Not where you look? Where is look is what is messing up and putting the gun in the ground.
__________________
One of the only people here that runs L4D servers, feel free to PM me any questions.
mikercool is offline
ApocalypseDan
Member
Join Date: Jan 2009
Old 03-12-2009 , 19:42   Re: [L4D] Spawn Minigun
Reply With Quote #16

Good one ill add it now and test it

Ok tested it and i must say even thought it is a really nice plugin it is complicated to find the id and set it to the degrees no way to make it rotate what you are looking at like in the

l4d build enabler http://forums.alliedmods.net/showthread.php?p=750106 this would make it much more user friendly so you can use it on the fly rather than having to open 3 different menus to get the information nedded to change direction of the gun.Keep up the good work
__________________

Last edited by ApocalypseDan; 03-12-2009 at 20:09.
ApocalypseDan is offline
ku5h
Member
Join Date: Feb 2009
Old 03-15-2009 , 18:07   Re: [L4D] Spawn Minigun
Reply With Quote #17

very cool, thx i used to be only able to use spawn a mini gun on NM_05
__________________
ku5h is offline
zxzx1992
New Member
Join Date: Mar 2009
Old 03-15-2009 , 22:59   Re: [L4D] Spawn Minigun
Reply With Quote #18

Copy the plugin and source to where?
zxzx1992 is offline
antihacker
Member
Join Date: Feb 2009
Old 03-16-2009 , 09:31   Re: [L4D] Spawn Minigun
Reply With Quote #19

@ku5h:
Thanks

@zxzx1992:
left4dead/addons/sourcemod/plugins, there you copy the .smx file
antihacker is offline
Jay Dogg
Senior Member
Join Date: Jan 2009
Old 03-31-2009 , 21:50   Re: [L4D] Spawn Minigun
Reply With Quote #20

Hey man great job its working a lot better. The one thing I did find was if you look towards the ground and spawn the minigun and if the minigun is part way in the ground (just needs to be a little bit in the ground) and you start using the minigun it pushies you threw to the area below(if there is an area below) a good example is the starting roof of No Mercy

But really man great plug and thanks for all your hard work.

Jay
Jay Dogg 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 18:08.


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