Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » HS only mod!!!
HS only mod!!! [message #218055] Fri, 08 September 2006 12:07 Go to next message
MrC is currently offline  MrC
Messages: 37
Registered: September 2005
Karma: 0
Recruit
Hello, Im busy with a hs only mod i already got it so far that bodyshots wont do damage.
But so do headshots Razz i want to know if anyone of u guys knows how to get bones working for my fds so i can set body damage off and headshot damage on.
Bones is a ini file and i edited it trough the maps in my computer and i didnt edited it trough level editor so objects.ddb wont edit it do u know a way to make bones.ini edit in the objects file Very Happy Thanks Very Happy
Re: HS only mod!!! [message #218057 is a reply to message #218055] Fri, 08 September 2006 12:09 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
can you unpack bones.ini from objects.ddb or do you need to know how to edit it?
Re: HS only mod!!! [message #218058 is a reply to message #218057] Fri, 08 September 2006 12:10 Go to previous messageGo to next message
MrC is currently offline  MrC
Messages: 37
Registered: September 2005
Karma: 0
Recruit
i need to know how to edit objects with bones in it so bodyshots wont work but hs do!
Re: HS only mod!!! [message #218074 is a reply to message #218055] Fri, 08 September 2006 12:52 Go to previous messageGo to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
extract bones.ini, edit neck/body damage multipliers to 0.

~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly
Re: HS only mod!!! [message #218080 is a reply to message #218074] Fri, 08 September 2006 13:23 Go to previous messageGo to next message
MrC is currently offline  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 Go to previous messageGo to next message
Ivan275 is currently offline  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 #218120 is a reply to message #218055] Fri, 08 September 2006 15:36 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

having it clientside is cheating
Re: HS only mod!!! [message #218137 is a reply to message #218055] Fri, 08 September 2006 16:19 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

Having a mod where it only does damage less of the time isn't exactly cheating ,closer to the inverse of it, but I know what can be done...

Renguard is a wonderful initiative
Toggle Spoiler
Re: HS only mod!!! [message #218201 is a reply to message #218109] Sat, 09 September 2006 00:30 Go to previous messageGo to next message
MrC is currently offline  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 Very Happy
If u got any idea's on helping me thnx alot Very Happy

[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 Go to previous messageGo to next message
Ivan275 is currently offline  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 Go to previous messageGo to next message
MrC is currently offline  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 Go to previous messageGo to next message
Ivan275 is currently offline  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 #218226 is a reply to message #218225] Sat, 09 September 2006 01:54 Go to previous messageGo to next message
MrC is currently offline  MrC
Messages: 37
Registered: September 2005
Karma: 0
Recruit
1 No
2 Yes
3 I got my own made scripts with bhs. got it from a m8 of mine
Re: HS only mod!!! [message #218238 is a reply to message #218226] Sat, 09 September 2006 03:58 Go to previous messageGo to next message
LR01 is currently offline  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 #218247 is a reply to message #218238] Sat, 09 September 2006 04:26 Go to previous messageGo to next message
MrC is currently offline  MrC
Messages: 37
Registered: September 2005
Karma: 0
Recruit
No i mean a mod that only hs do damage and bodyshots dont
Re: HS only mod!!! [message #218266 is a reply to message #218055] Sat, 09 September 2006 05:26 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Edit bones.ini and place in the data folder, or if it's for a TC mod, place in always.dat.
Re: HS only mod!!! [message #218384 is a reply to message #218247] Sun, 10 September 2006 00:40 Go to previous messageGo to next message
LR01 is currently offline  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 #218406 is a reply to message #218055] Sun, 10 September 2006 02:06 Go to previous messageGo to next message
Babekida is currently offline  Babekida
Messages: 27
Registered: August 2006
Karma: 0
Recruit
HS = Head Shot.

Re: HS only mod!!! [message #218472 is a reply to message #218406] Sun, 10 September 2006 08:45 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
yes, and I can put my head in the wall

Moding can be real Fun...
Re: HS only mod!!! [message #218534 is a reply to message #218055] Sun, 10 September 2006 13:19 Go to previous messageGo to next message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

There is no way atm to make a headshot-only mod for Renegade.

You don't know if someone was killed by a headshot.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: HS only mod!!! [message #218560 is a reply to message #218534] Sun, 10 September 2006 14:41 Go to previous messageGo to next message
Ivan275 is currently offline  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
Re: HS only mod!!! [message #218569 is a reply to message #218055] Sun, 10 September 2006 15:28 Go to previous messageGo to next message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Let's say a player has 40 HP left and a headshot makes 1000 damage.
This player gets killed by a headshot and it tells you that this shot did 40 HP damage on him.
How would you know if it was a headshot or just a normal bodyshot ?


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: HS only mod!!! [message #218572 is a reply to message #218055] Sun, 10 September 2006 15:57 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Because bones.ini tells people what's what and gives multipliers to body parts, if you edit it to say that everything but the head to nothing then only head shots will do damage.
Re: HS only mod!!! [message #218580 is a reply to message #218055] Sun, 10 September 2006 16:43 Go to previous messageGo to next message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

I thought bones.ini doesn't work serverside, or am I wrong

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: HS only mod!!! [message #218584 is a reply to message #218055] Sun, 10 September 2006 17:24 Go to previous messageGo to previous message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
I know it works non-dedi serverside but i'm not 100% sure about dedicated servers.
Previous Topic: Renegade help needs you!
Next Topic: AI Bots Server Side
Goto Forum:
  


Current Time: Mon Dec 23 05:52:06 MST 2024

Total time taken to generate the page: 0.01286 seconds