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

Dod Mortar Class


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Day of Defeat        Category:   Gameplay        Approver:   Xanimos (85)
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-03-2006 , 20:42   Dod Mortar Class
Reply With Quote #1

UPDATED TO v1.11 -- 03 SEP 2006
UPDATED TO v1.1 -- 30 AUG 2006

Here it is gentlemen, the "Mortar Class" you've seen in map screenshots where the compile is buggy, or the models you've seen in the GCF. This plugin includes the model and the class name and I've coded the rest of it.

Code:
////////////////////////////////////////////
//   Day of Defeat Mortar Class
//   Created by: 29th ID
//
//   Part of the 29th ID's modification to
//   Day of Defeat, making it more realistic
//   DOD:Realism - dodrealism.branzone.com
//
//   Credits:
//   Code for the mortar shell itself was 
//   based off of Ludwig Van's "Missile"
//   plugin. He also helped answer a few of
//   my general coding questions so credits 
//   to him.
//
//   The 29th ID Engineer Corps were the 
//   plugin's main testers and helped 
//   immensely.
//
//   Versions:
//
//   1.0 - Initial Release - 24 JUL 2006
//   1.1 - Basic Bug Fixes - 30 AUG 2006
//   1.11- Overlooked Bugs Fixes - 03 SEP 2006
//
//
//   Known Bugs: (Not sure how to fix)
//   -Player model displays inside of player
//    instead of in "holding" position
//   -World model is a bazooka/pschreck
//   -Switching to pistol plays "reload"
//    animation/sound for a second (client-only)
//
////////////////////////////////////////////
Code:
////////////////////////////////////////////
//   Description
//
//   This allows a player to use the mortar 
//   class in Day of Defeat, the class that 
//   the developer team never completed but
//   still made the class name and the view
//   model.
//
//   You can change your class to the mortar/
//   morserschutze and prone & deploy it.
//   You can then adjust the power of the 
//   mortar and fire it over buildings to land
//   on targets designated by firemarkers.
//
////////////////////////////////////////////
Code:
////////////////////////////////////////////
//   Usage (cvars for amxx.cfg):
//
//   dod_mortars <1/0>
//   	Enables or disables the plugin. (Default 1)
//   dod_mortar_damradius <amount>
//   	Radius mortar can cause damage from where
//   	it lands. (Default 550)
//   dod_mortar_maxdamage <amount>
//	Maximum hp damage caused by a player being
//	hit with a mortar shell. (Default 180)
//   dod_mortar_defaultpower <amount>
//	Default setting for the power of the mortar,
//	which has to do with the speed/distance the
//   	shell travels. (Default 700)
//   dod_mortar_ammo <amount>
//	Amount of mortar shells the client spawns 
// 	with. (Default 30)
//   dod_proned_decrease <amount>
//	Amount to decrease the damage if the mortar
//  	hits a client who is proned (Default 35)
//   dod_crouched_decrease <amount>
//	Amount to decrease the damage if the mortar
//	hits a client who is crouched (Default 10)
//   mp_limitalliesmortar <amount>
//   mp_limitaxismortar <amount>
//   mp_limitbritmortar <amount>
//	Works the same way as other class limits, to
//	limit how many players are allowed to use the
//	mortar on each team
//
//   Usage (client commands):
//
//   say /mortar
//	Brings up MOTD window with the following client
//	commands & instruction
//   class_mortar
//	Sets the users class to the mortar class. Must
//	respawn just like any other class.
//   mortar_deploy
//	Deploys the mortar and makes it ready to fire.
//	+attack2 will not do this.
//   mortar_up
//	Increases the power of the mortar by 100
//   mortar_down
//	Decreases the power of the mortar by 100
/////////////////////////////////////////////
Code:
////////////////////////////////////////////
//   Updates
//   v.1.1
//   Thanks to 29th ID, Diamond-Optic, and 
//   =|[76AD]|= TatsuSaisei for finding bugs
//
//   -Fixed error messages when spectating mortar player
//   -Made death messages pending on mp_deathmsg
//   -Added class limits
//   -Switching weapons while deployed now undeploys
//   -Mortar kills now log as a mortar (instead of missile)
//   -Fixed bug with non-mortar classes getting ammo
//   -Fixed bazooka-drop-run bug
//
//   v1.11
//   -Fixed kills logging double
//   -Fixed class limits not recognising "-1"
////////////////////////////////////////////
Please PM me or reply here with any bugs so I can fix them. This is the initial release so hopefully it will workout well and will be fun to use.



Support for this plugin at
http://www.dodplugins.net/forums/showthread.php?t=110
Attached Files
File Type: sma Get Plugin or Get Source (mortar_class.sma - 2270 views - 27.9 KB)
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician

Last edited by Wilson [29th ID]; 12-16-2007 at 17:25.
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]
 



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 23:24.


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