PDA

View Full Version : Couple of probably easy questions


Rahabib
07-22-2005, 02:59 PM
I have looked all over, and unless I am blind I cannot find how to adjust the following:

1- Disable the autoswitch to detonator on C4. I cannot tell you how many times I lost count of satchels and blew myself up!

ObjectTemplate.ammo.toggleWhenNoAmmo 0

I thought it was this but it doesnt work.

2- Is there a way to make it so you adjust the distance a C4 can be thrown? I want it to be very small so that you have to place the satchels and not toss it.

3- Forcing reviving people to only give 25 health points instead of all of it. I got it to work a bit with this command

ObjectTemplate.collision.resurrectDamage 25

What it would do is give the person 25 health but not revive the person and it would not let them respawn.

I even tried changing the following commands as well

ObjectTemplate.collision.restoreHP 25
ObjectTemplate.damage 25

Those didnt work, in any combination either. I dont know, maybe you cant change that.

4- Increase damage of rockets. I dont see anywhere a damage object. Maybe I am looking for the wrong thing?

5- I used the double zoom for the M24 (thanks CXZAR) which works great. Now is there a way to decrease the time after a shot you can unzoom.

Changing these made it stay zoomed after you fire a bullet which is fine.

ObjectTemplate.zoom.zoomOutAfterFire 0

This I dont know what it did. I didnt see a difference.

ObjectTemplate.zoom.disableMuzzleWhenZoomed 0

Changing these didnt make it so I could unzoom the second after I fired. Instead it would wait about 3-4 seconds before I could unzoom.

ObjectTemplate.zoom.zoomDelay 0.001
ObjectTemplate.zoom.changeFovDelay 0.01

I would assume the zoomDelay only relates to the time for ZoomOutAfterFire if set to 1 and not 0, but I could be wrong. changeFovDelay, I have no idea what that does.

Anyway, thanks for any assistance you can give.

Rahabib
07-23-2005, 09:35 PM
Bump..anyone? anything?

Rahabib
07-25-2005, 04:49 AM
bump again. I know some one knows at least one of these.

grolsche
07-25-2005, 09:50 AM
The reason people wont resurrect is the shock paddles kill you first and then they respawn you. If you look on stats pages for example it shows you have died numerous times with a shock paddle, but you can never remember that happening. So in the code DICE have made the shock paddles do 20000 damage and then with another live, give you 120 health back.

ObjectTemplate.collision.resurrectDamage 20000
ObjectTemplate.collision.restoreHP 120

So theoretically you would simple have to change this to:

ObjectTemplate.collision.resurrectDamage 20000
ObjectTemplate.collision.restoreHP 20

Thats what I "think" should be done. I havent tested it but thats what should fix the problem.

Djuice
07-25-2005, 09:57 AM
what GrolscHe said, i did that on my beta testing version, and it should work

Rahabib
07-25-2005, 05:53 PM
thanks Ill give it a try

Rahabib
07-25-2005, 08:43 PM
I thought I had tested that before, and after trying it again, I realized I had. Changing ObjectTemplate.collision.restoreHP does nothing. You revive but at full health no matter what teh value is.

Thanks for helping though.

grolsche
07-25-2005, 08:55 PM
Just a question how is your code set up to run in the mod, i.e. how is laid out in another folder?

Rahabib
07-26-2005, 03:40 AM
I created a mod folder which has everything from the BF2 folder. All the rest tweaks have worked just fine (except the few questions I still have above). After I get the mod done, I will delete the stuff I dont need. For now I am using the Objects_server.zip and modifying the things I need.

Why do you ask? Does it work for you?

Rahabib
08-01-2005, 05:01 PM
bump.. last attempt. I found the problem with the rocket damage, but the others still have me stumped.

SgtDuke
10-28-2005, 02:54 AM
I thought I had tested that before, and after trying it again, I realized I had. Changing ObjectTemplate.collision.restoreHP does nothing. You revive but at full health no matter what teh value is.
Has anyone found a solution to this problem? I also would like to have revived players with about 1/4 health but changing collision.restoreHP does nothing for me either. Did they just not implement this correctly in the code and there's nothing we can do to change it?