Go Back   Project Reality Forums > Project Reality Mod Forums > PR Community Modding
PR Community Modding : Discussion on PR community mod projects.

Welcome to the Project Reality Forums! Join the Project Reality forums! Contact Us


Reply
 
LinkBack Thread Tools Display Modes
Old 05-22-2008, 09:25 PM   #1

mike653048's Avatar
[Question] 2 questions

how and if its possible, do you increase the damage done to the cobra cannon?

next question, how do you change the effects for the explosion of the cannon?

kinda like how you guys did it for PR

thanks
mike653048 is offline Reply With Quote
Old 05-23-2008, 11:05 AM   #2
PR Contributor

[R-CON]Alex6714's Avatar
Re: 2 questions

I am changing the cannon impact effect now. What did you have in mind?

As for the damage, I assume its in the weapons .tweak file, but I am not sure.

"Today's forecast calls for 30mm HE rain with a slight chance of hellfires"
[R-CON]Alex6714 is offline Reply With Quote
Old 05-23-2008, 11:10 AM   #3
Banned

Huntelaar's Avatar
Send a message via MSN to Huntelaar
Re: 2 questions

i think for the first question you change the Explosion Radius in the .tweak file
Huntelaar is offline Reply With Quote
Old 05-23-2008, 11:13 AM   #4
PR Contributor

[R-CON]Z-trooper's Avatar
Send a message via MSN to [R-CON]Z-trooper Send a message via Skype™ to [R-CON]Z-trooper
Re: 2 questions

go to the cobras .tweak file and alter the damage variable for that weapon...

as for the explosion effect. well, if there is any particular effect from another place in the game, say a tank explosion (just as an example), well just go to the tweak file and spend like 10min to find the area in the code that deals with that, now go to the tanks .tweak file and find the effect there and copy/paste it into the cobras .tweak file (overwriting the lines it had for the gun effect there).

I did something similar a little while back, this started out as the cobras hydra rockets, and now I call it a flak cannon. (still have the sound of the cobras rockets )

YouTube Video
ERROR: If you can see this, then YouTube is down or you don't have Flash installed.

[R-CON]Z-trooper is offline Reply With Quote
Old 05-23-2008, 11:21 AM   #5
PR Contributor

[R-CON]Z-trooper's Avatar
Send a message via MSN to [R-CON]Z-trooper Send a message via Skype™ to [R-CON]Z-trooper
Re: 2 questions

Quote:
Originally Posted by Huntelaar View Post
i think for the first question you change the Explosion Radius in the .tweak file
well, there are many different ways to change the "damage" of a weapon.

The most obvious one being the base damage often labled as "damage"... what we need to keep in mind is that there are several things that affect the actual damage delt when it hits something, for instance the range.
There is a variable for that as well, called something like 'damage over range' or something to that effect.

Now there are other things such as "radius" of damage/explosion, and "force" too. Force is mostly the effect on the object that gets hit. for instance if I was shooting a rifle at a jeep, the jeep wont be pushed back, but if I was fireing a tank or placed some C4 on there, it will move thus the "force" of a tank shell is higher than a rifles, I havent tested if the force actually affects the damaged delt though.
The velocity might also have an effect on the damage, but I havent tested it.

EDIT:

here are some of the stuff that I think will alter the damage (at some level)

explosive objects:
ObjectTemplate.detonation.explosionMaterial 55
ObjectTemplate.detonation.explosionRadius 3
ObjectTemplate.detonation.explosionForce 10
ObjectTemplate.detonation.explosionDamage 200

bullet objects:
ObjectTemplate.minDamage 1
ObjectTemplate.damage 300
ObjectTemplate.distToStartLoseDamage 600 <--- that was the variable I was talking about
ObjectTemplate.distToMinDamage 1000 <-- at this range the damage will be ObjectTemplate.minDamage


common:
ObjectTemplate.velocity 400

[R-CON]Z-trooper is offline
Last edited by Z-trooper; 05-23-2008 at 11:29 AM..
Reply With Quote
Sponsored Links
Old 05-23-2008, 06:20 PM   #6

mike653048's Avatar
Re: [Question] 2 questions

it wont let me edit the .tweak file
mike653048 is offline Reply With Quote
Old 05-23-2008, 06:22 PM   #7
PR Contributor

[R-CON]ZZEZ's Avatar
Re: [Question] 2 questions

1)open .tweak files with NOTEPAD
2)ensure that the .tweak are not read-only


"Don't let it end like this. Tell'em I have said something."
[R-CON]ZZEZ is online now Reply With Quote
Old 05-23-2008, 06:33 PM   #8

mike653048's Avatar
Re: [Question] 2 questions

how do i know that there not read only?
mike653048 is offline Reply With Quote
Old 05-23-2008, 08:36 PM   #9

mike653048's Avatar
Re: [Question] 2 questions

sorry to reply again, but i REALLY need help
mike653048 is offline Reply With Quote
Old 05-23-2008, 08:54 PM   #10
PR Contributor

[R-CON]azn_chopsticks_boi's Avatar
Re: [Question] 2 questions

Right click on the file, and click properties.

[R-CON]azn_chopsticks_boi is offline Reply With Quote
Sponsored Links
Reply


Bookmarks

Tags
question, questions
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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:42 PM.


Powered by: vBulletin. ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO.
All Content Copyright ©2004 - 2008, Project Reality.