rnUPDATED TO v1.1 -- 30 AUG 2006
rn
rnHere 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.
rn
rn
////////////////////////////////////////////rn// Day of Defeat Mortar Classrn// Created by: 29th IDrn//rn// Part of the 29th ID's modification torn// Day of Defeat, making it more realisticrn// DOD:Realism - dodrealism.branzone.comrn//rn// Credits:rn// Code for the mortar shell itself was rn// based off of Ludwig Van's "Missile"rn// plugin. He also helped answer a few ofrn// my general coding questions so credits rn// to him.rn//rn// The 29th ID Engineer Corps were the rn// plugin's main testers and helped rn// immensely.rn//rn// Versions:rn//rn// 1.0 - Initial Release - 24 JUL 2006rn// 1.1 - Basic Bug Fixes - 30 AUG 2006rn// 1.11- Overlooked Bugs Fixes - 03 SEP 2006rn//rn//rn// Known Bugs: (Not sure how to fix)rn// -Player model displays inside of playerrn// instead of in "holding" positionrn// -World model is a bazooka/pschreckrn// -Switching to pistol plays "reload"rn// animation/sound for a second (client-only)rn//rn////////////////////////////////////////////
rn
rn
////////////////////////////////////////////rn// Descriptionrn//rn// This allows a player to use the mortar rn// class in Day of Defeat, the class that rn// the developer team never completed butrn// still made the class name and the viewrn// model.rn//rn// You can change your class to the mortar/rn// morserschutze and prone & deploy it.rn// You can then adjust the power of the rn// mortar and fire it over buildings to landrn// on targets designated by firemarkers.rn//rn////////////////////////////////////////////
rn
rn
////////////////////////////////////////////rn// Usage (cvars for amxx.cfg):rn//rn// dod_mortars <1/0>rn// Enables or disables the plugin. (Default 1)rn// dod_mortar_damradiusrn// Radius mortar can cause damage from wherern// it lands. (Default 550)rn// dod_mortar_maxdamage rn// Maximum hp damage caused by a player beingrn// hit with a mortar shell. (Default 180)rn// dod_mortar_defaultpower rn// Default setting for the power of the mortar,rn// which has to do with the speed/distance thern// shell travels. (Default 700)rn// dod_mortar_ammo rn// Amount of mortar shells the client spawns rn// with. (Default 30)rn// dod_proned_decrease rn// Amount to decrease the damage if the mortarrn// hits a client who is proned (Default 35)rn// dod_crouched_decrease rn// Amount to decrease the damage if the mortarrn// hits a client who is crouched (Default 10)rn// mp_limitalliesmortar rn// mp_limitaxismortar rn// mp_limitbritmortar rn// Works the same way as other class limits, torn// limit how many players are allowed to use thern// mortar on each teamrn//rn// Usage (client commands):rn//rn// say /mortarrn// Brings up MOTD window with the following clientrn// commands & instructionrn// class_mortarrn// Sets the users class to the mortar class. Mustrn// respawn just like any other class.rn// mortar_deployrn// Deploys the mortar and makes it ready to fire.rn// +attack2 will not do this.rn// mortar_uprn// Increases the power of the mortar by 100rn// mortar_downrn// Decreases the power of the mortar by 100rn/////////////////////////////////////////////
rn
rn
////////////////////////////////////////////rn// Updatesrn// v.1.1rn// Thanks to 29th ID, Diamond-Optic, and rn// =|[76AD]|= TatsuSaisei for finding bugsrn//rn// -Fixed error messages when spectating mortar playerrn// -Made death messages pending on mp_deathmsgrn// -Added class limitsrn// -Switching weapons while deployed now undeploysrn// -Mortar kills now log as a mortar (instead of missile)rn// -Fixed bug with non-mortar classes getting ammorn// -Fixed bazooka-drop-run bugrn//rn// v1.11rn// -Fixed kills logging doublern// -Fixed class limits not recognising "-1"rn////////////////////////////////////////////
rn
rnPlease 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.

