PDA

View Full Version : [RELEASE] ScoringBonuses - Server Side Mod


SHA-DK
07-21-2005, 02:21 AM
-- ScoringBonuses v 1.0 --

This is a small server side only mod that gives a few extra points for something special.

If you destroy a enemy vehicle you get extra points, if you are on foot when you do it you get even more :)

If you play sniper you get a little extra for killing a enemy sniper, you get a little more for killing a squadleader and you get a lot more for killing the enemy commander ... if you can find any of them ;)

The bonuses:
Snipers
Enemy commander = 5 points
Enemy squadleader = 2 points
Enemy sniper = 1 point

Any grunt (player on foot, using basedefense or parachuting)
Enemy tank = 2 points
Enemy transport = 1 point
Enemy helicopter = 2 points
Enemy plane = 2 points

Any driver/passenger (tank, transport, helicopter or plane)
Enemy tank = 1 point
Enemy helicopter = 1 point
Enemy plane = 1 point

In the future:
I hope in the future to be able to add ...

SpecOps scores for blowing up UAV, Arty, Sat
This will however require the knowlege of a blownup event to hook the script up too :confused:
TeamOrder scores for actions within a 30-50 feet radius of a commander/squadleader attack/defend/fix/blowup/asembly order
This will however require the knowlege of a command/order object to compare any addscore event too :confused:


Installation:

Save this script as 'scoringBonuses.py' in your <bf2>/admin/standard_admin directory.
Add the lines 'import scoringBonuses' and 'scoringBonuses.init()' to the file '<bf2>/admin/standard_admin/__init__.py'.


Ohh and please dont complain about the name, I couldn't come up with one :rolleyes:

CXZAR
07-21-2005, 04:53 AM
Niiiiiiiiice!!!! hey man thank's a lot for this, im gonna give it a try ASAP!!!

SHookPR
07-21-2005, 01:17 PM
nice work, due we are not using commander mode at all i could look now into it changing the scores how its up for our community....thats how it has to be...give everything to the people and they make what they want play best....do not understand why EA is not following that success scheme anymore....is it only the money...bleh...pathetic

FL-
07-21-2005, 07:32 PM
Good deal. I changed the script so that any kit that kills a commander or squad leader gets a bonus (not just sniper). Everything else seemed to be okay.

I don't really like giving infantry bonuses when they take out a vehicle and they are in an AA or ground defense emplacement. I may change that so that they have to be in their kit and not in an emplacement.

FL-
07-21-2005, 07:34 PM
SHookPR, how exactly did you get rid of the commander role? I'm thinking about taking out just artillery, do you know if this is possible?

CXZAR
07-21-2005, 08:07 PM
i was wondering about that too, i only play SP and sometimes online, so i was wondering if i can make it to work in SP??, and about the commander mode, yeah i want to get rid of it because the AI commander is way too good, have u guys tried it? u cant be in the same spot sniping or else........... the enemy commander really loves u with artillery :P

SHA-DK
07-22-2005, 12:34 AM
This mod and SP + other mods

The mod works in SP mode + with most other mods out there since it dosn't change anything from the actual game, it only adds stuff (bonuses).

In that sence i guess it more a server admin tool/module rather than a mod !
(hence the installation in the <bf2>/admin/standard_admin directory)

If you only want it to work with your own mod and not on everything installed on the server, you install it into your <bf2>/mods/bf2_Mod_Name/python/game directory instead. Then you alter the __init__.py there as described above in the first post.

Removal of the commander

I do understand why you want a removal of the commander.

Artilery every 30 sec or so can be very anoying, especialy if your hole team is stuck with only one base :hmm:
But does the same thing not count with near undestructable aircraft droping bombs at the very same base every 15 sec :evil: , or the a constant rain of bullets over the base from a distent blackhawk :mad: ?
You try to put a stinger up their a... but the only way you are ever gona make it hit is if the plane/helicopter stops in mid air for a cigaret for 10-20 sec. But it the pilot drops the cigaret out the window, you can be sure that 100% of your stingers will chase it :confused:

This game has a lot of flaws ... true ... but why not correct these instead of removing these posible gameplay upgrades. (posible because some people like them but they realy needs fixing)

Supose the artilery and the map scan had a lot longer reload time, supose the anti air actualy could kill aircraft and helicopters and the anti tank could kill tanks and what if the aircraft could be forced to land in order to rearm ?
Not to forget if we could be allowed to unlock all weapons server side !

Get the above into a mod and you will have a lot better game without removing gameplay ... my opinion at least ;)

SHookPR
07-22-2005, 05:09 PM
search for one of my threads i have been asking how to disable commander mode and it got answered....wait i will search it for you

SHookPR
07-22-2005, 05:28 PM
search for one of my threads i have been asking how to disable commander mode and it got answered....wait i will search it for you

really sorry...must have been a thread from anybody else, i can`t find that question by me here on the forum....but maybe its that


def init():
# events hook
host.registerGameStatusHandler(onGameStatusChanged )
if host.sgl_getIsAIGame() == 1:
host.sh_setEnableCommander(0)
else:
host.sh_setEnableCommander(0)



C:\Programme\EA GAMES\Battlefield 2\mods\bf2\python\game\gamemodes

gpm_cq

SHA-DK
07-30-2005, 01:53 AM
I have been updating ... welll actualy rewriting the hole bonus system :)

The result is a new script ThreadAndWorth.py

The script plus additional info can be found here http://forums.totalbf2.com/showthread.php?p=242132#post242132