Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » HS only mod!!!
Re: HS only mod!!! [message #218221 is a reply to message #218218] Sat, 09 September 2006 01:41 Go to previous messageGo to previous message
MrC is currently offline  MrC
Messages: 37
Registered: September 2005
Karma:
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Renegade help needs you!
Next Topic: AI Bots Server Side
Goto Forum:
  


Current Time: Mon Sep 16 20:31:54 MST 2024

Total time taken to generate the page: 0.01393 seconds