Raised This Month: $32 Target: $400
 8% 

Dod Technician (Bazooka Plus Carbine)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   Gameplay        Approver:   Hawk552 (427)
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 12-20-2006 , 04:24   Dod Technician (Bazooka Plus Carbine)
Reply With Quote #1

The long awaited...

Quote:
/* TECHNICIAN
* Created by the 29th Infantry Division
* www.29th.org
* www.dodrealism.branzone.com -- Revolutionizing Day of Defeat Realism
*
* DESCRIPTION
* -Will give the Bazooka class an m1 carbine instead of a pistol, and the
* panzerjaeger class an mp40 instead of a pistol. Uses limited magazines
* for secondary weapons to provide balance.
*
* CVARS
* -dod_technician <1/0>
* Enables or disables the plugin
*
* CREDITS
* -Sgt. Theel
* -2Lt. Nobles
* -DOD: Source...for the idea
* -Rukia for pdata and teaching me how to be a man
*
* FAQ
* -Can I customise this to give different multiple weapons?
* Answer: Theoretically yes. This is the foundation of a dual weapons plugin
* and could be transformed into such
* -Will this plugin make me better at Day of Defeat?
* Answer: No, if you such you will still continue to suck. But this will give you
* and extra weapon.
*
* KNOWN BUGS
* -Drop both weapons, pick up carbine, and press slot2.
* It will give you another carbine with full ammo until you switch weapons
*
*/
Just to give you a heads up, this plugin is actually really useful, and makes the Rocket class actually practical.
Attached Files
File Type: sma Get Plugin or Get Source (dod_technician.sma - 2952 views - 23.7 KB)
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician

Last edited by Wilson [29th ID]; 02-18-2007 at 20:30.
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
=|[76AD]|= TatsuSaisei
Junior Member
Join Date: Nov 2006
Old 12-23-2006 , 12:57   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #2

I love this plugin, and the code used to make the switch has been invaluable in some of my personal plugins !!

Wilson R0X in DoD !!
__________________
=|[76AD]|= TatsuSaisei is offline
Send a message via AIM to =|[76AD]|= TatsuSaisei
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 12-25-2006 , 23:53   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #3

one recommendation, you uses ResetHUD, so you might wanna block the fullupdate command, but im not sure if you have fullupdate in dod
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
The Specialist
BANNED
Join Date: Nov 2006
Old 12-25-2006 , 23:55   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=42159

reset hud event is called more then once a round . So you need to use VEN's spawn code to corectly detect the player spawn .
The Specialist is offline
Send a message via AIM to The Specialist
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 12-26-2006 , 11:19   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #5

since its for dod... you could use the dod_client_spawn native (or whatever it is) from dodx
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-26-2006 , 12:45   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #6

in your is_holding_new_wpn(id,class) stock, you can return or break during the for loop, so you don't do unnecessary checks. Same with has_tech_weapon(id,wpn) stock.

Looked fine otherwise, approved.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-26-2006 , 12:46   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #7

Quote:
Originally Posted by Emp` View Post
in your is_holding_new_wpn(id,class) stock, you can return or break during the for loop, so you don't do unnecessary checks. Same with has_tech_weapon(id,wpn) stock.

Looked fine otherwise, approved.
You should wait for him to put in the dod_client_spawn section. Using ResetHUD is enough to hold it back.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 12-26-2006 , 13:09   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #8

i dont really see the big fuss over resethud..

as I run quite a few plugins that use resethud and never have i once noticed a single problem with them.. at least thats on my dod server..

but then again theres really no reason not to use the dod_client_spawn instead
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-26-2006 , 19:01   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #9

Quote:
Originally Posted by diamond-optic View Post
i dont really see the big fuss over resethud..

as I run quite a few plugins that use resethud and never have i once noticed a single problem with them.. at least thats on my dod server..

but then again theres really no reason not to use the dod_client_spawn instead
That's probably because no one has ran "fullupdate" in their console while in your server.

They'll get full ammo back whenever they do it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 12-26-2006 , 19:16   Re: Dod Technician (Bazooka Plus Carbine)
Reply With Quote #10

ohh well true... i believe i have fullupdate blocked thru hlguard :-\
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Reply


Thread Tools
Display Modes

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 15:00.


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