|
|
|
|
Re: HS only mod!!! [message #218080 is a reply to message #218074] |
Fri, 08 September 2006 13:23 |
MrC
Messages: 37 Registered: September 2005
Karma: 0
|
Recruit |
|
|
where do i have to extract bones ini too??
Cos if i put in data it wont work.
It has to go in other format but how? and in what kind of?
|
|
|
Re: HS only mod!!! [message #218109 is a reply to message #218080] |
Fri, 08 September 2006 15:08 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
Recruit |
|
|
If I'm not mistaken bones.ini is a client side thing. Changing in on the FDS won't do anything. The only way i can see it working is if it's added to all your maps and you make all your players dl your maps.
Do you want your HS mod to only count HS, or only HS that do enough damage to do a 1 shot kill(sniper/ramjet/pic/rail)?
|
|
|
|
|
Re: HS only mod!!! [message #218201 is a reply to message #218109] |
Sat, 09 September 2006 00:30 |
MrC
Messages: 37 Registered: September 2005
Karma: 0
|
Recruit |
|
|
Ivan275 wrote on Fri, 08 September 2006 17:08 | If I'm not mistaken bones.ini is a client side thing. Changing in on the FDS won't do anything. The only way i can see it working is if it's added to all your maps and you make all your players dl your maps.
Do you want your HS mod to only count HS, or only HS that do enough damage to do a 1 shot kill(sniper/ramjet/pic/rail)?
|
how do i add it to all my maps then?? ( with what program)
I want the my Hs mod only to count hs's.
But i really dont know how i have try'ed so much but i have no idea.
I want bodyshots not to work but hs will kill in 1 shot.
It will be for my sniper game so...
And for fds so everybody will have it and it will be fair
If u got any idea's on helping me thnx alot
[Updated on: Sat, 09 September 2006 00:46] Report message to a moderator
|
|
|
Re: HS only mod!!! [message #218218 is a reply to message #218201] |
Sat, 09 September 2006 01:32 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
Recruit |
|
|
Quote: | how do i add it to all my maps then??
| This is a horrible thing to do and most likely keep your server empty. I never tried it but it should work. You get RanegadeEX(search in yahoo) open one of your maps and import the modified bones.ini in to the map. Then make everyone that will play on your server download that and all the other maps you imported the bones.ini in to. Quote: | It will be for my sniper game so...
| That is what I wanted to hear. For a sniper mod this can be done using scripts and a modified objects.ddb/.aow
Do you have any c++ or other language programing experience?
Do you have any expedience modifying objects file?
Do you have any expedience modifying scripts.dll?
What scripts version are you planning on using on your server?
Here is a quick run threw of what you need to do:
Quote: | In scripts.dll there is a function void M00_GrantPowerup_Created it is attached to all players, you need to add to it a ::Damaged(GameObject *obj, GameObject *damager, float damage) part. Now every time a player is damaged this function will trigger. In it you will need to check the damage done to the player. Something like this should work for your server, it will basically make the server work like this. If you shoot someone and don't do enough damage to kill them they get all the health back. Seeing that a ramjet will do 200 damage to the body and basic infantry have 100health and 100armor you would need to disable them(basic infantry) or add 1 to their health using modded objects. This still won't make it a true HS server, it will make it into a HS and neck shot server.
if (damage != Commands->Get_Max_Health(obj)+Commands->Get_Max_Shield_Strength(obj)){
Commands->Set_Health(obj,Commands->Get_Max_Health(obj));
Commands->Set_Shield_Strength(obj,Commands->Get_Max_Shield_Strength(obj));}
The only way I know how to make it in to a true HS server is give all players over 600 health + armor then you can check damage done against weapon used.
if (sniper rifle (gdi/nod) && damage = 500) then kill player
else if (damage >600) then kill player
else heal player back to max health and max armor
|
PS there is a function called "Get_Damage_Bone_Name" in scripts but because it's declared as not taking any parameters I'm not sure how to used it to do what you want.
[Updated on: Sat, 09 September 2006 01:43] Report message to a moderator
|
|
|
Re: HS only mod!!! [message #218221 is a reply to message #218218] |
Sat, 09 September 2006 01:41 |
MrC
Messages: 37 Registered: September 2005
Karma: 0
|
Recruit |
|
|
Ivan275 wrote on Sat, 09 September 2006 03:32 |
Quote: | how do i add it to all my maps then??
| This is a horrible thing to do and most likely keep your server empty. I never tried it but it should work. You get RanegadeEX(search in yahoo) open one of your maps and import the modified bones.ini in to the map. Then make everyone that will play on your server download that and all the other maps you imported the bones.ini in to. Quote: | It will be for my sniper game so...
| That is what I wanted to hear. For a sniper mod this can be done using scripts and a modified objects.ddb/.aow
Do you have any c++ or other language programing experience?
Do you have any expedience modifying objects file?
Do you have any expedience modifying scripts.dll?
What scripts version are you planning on using on your server?
Here is a quick run threw of what you need to do:
Quote: | In scripts.dll there is a function void M00_GrantPowerup_Created it is attached to all players, you need to add to it a ::Damaged(GameObject *obj, GameObject *damager, float damage) part. Now every time a player is damaged this function will trigger. In it you will need to check the damage done to the player. Something like this should work for your server, it will basically make the server work like this. If you shoot someone and don't do enough damage to kill them they get all the health back. Seeing that a ramjet will do 200 damage to the body and basic infantry have 100health and 100armor you would need to disable them(basic infantry) or add 1 to their health using modded objects. This still won't make it a true HS server, it will make it into a HS and neck shot server.
if (damage != Commands->Get_Max_Health(obj)+Commands->Get_Max_Shield_Strength(obj)){
Commands->Set_Health(obj,Commands->Get_Max_Health(obj));
Commands->Set_Shield_Strength(obj,Commands->Get_Max_Shield_Strength(obj));}
The only way I know how to make it in to a true HS server is give all players over 600 health + armor then you can check damage done against weapon used.
if (sniper rifle (gdi/nod) && damage = 500) then kill player
else if (damage >600) then kill player
else heal player back to max health and max armor
|
|
Thanx i already tryed giving people 9999 armor & health but when i do that bodyshots wont work:YES But headshots wont work either so do u know how to fix it that headshots will work but bodyshots dont?
I do this in level editor with the file Objects.aow
[Updated on: Sat, 09 September 2006 01:42] Report message to a moderator
|
|
|
Re: HS only mod!!! [message #218225 is a reply to message #218221] |
Sat, 09 September 2006 01:48 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
Recruit |
|
|
Do you have any c++ or other language programing experience?
Do you have any expedience modifying scripts.dll?
What scripts version are you planning on using on your server?
|
|
|
|
Re: HS only mod!!! [message #218238 is a reply to message #218226] |
Sat, 09 September 2006 03:58 |
|
LR01
Messages: 842 Registered: April 2006 Location: The Netherlands
Karma: 0
|
Colonel |
|
|
a HS only mod on Renegade?
(don't you forget that you can have your head in the wall, witches makes you head unhittble?)
Moding can be real Fun...
|
|
|
|
|
Re: HS only mod!!! [message #218384 is a reply to message #218247] |
Sun, 10 September 2006 00:40 |
|
LR01
Messages: 842 Registered: April 2006 Location: The Netherlands
Karma: 0
|
Colonel |
|
|
nowud13 wrote on Sat, 09 September 2006 13:26 | No i mean a mod that only hs do damage and bodyshots dont
|
what is "hs" then?
Moding can be real Fun...
|
|
|
|
|
|
Re: HS only mod!!! [message #218560 is a reply to message #218534] |
Sun, 10 September 2006 14:41 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
Recruit |
|
|
Cat998 wrote on Sun, 10 September 2006 13:19 | There is no way atm to make a headshot-only mod for Renegade.
You don't know if someone was killed by a headshot.
|
But you can tell how much damage is done by a shot(D), what weapon the player has, and how much damage that weapon is soposed to do to the body(DB).
if D=DB*5 then its a HeadShot
nowud13 go to yousendit.com, if you have VC++ and know how to compile scource code into scripts.dll upload just aow.cpp
if you dont know how to do that zip up and upload the full scurce code from your scripts(all files) and PM me a yousendit link to it
|
|
|
|
|
|
|