Soldier Of Fortune 2 Forum Index
» SOF2 Tutorials » How?? |
|
Author |
Message |
abdouraoui
Pro Poster

Joined: Aug 23, 2013 Last Visit: Sep 05, 2018 Posts: 21
Reputation: 43.9   Medals: None
Status: Offline
|
Posted: Fri Jan 02, 2015 11:51 pm
Post subject: How?? |
|
|
Hi all
Can someone help me how to add new ranks in server and how to add recover health? |
|
|
 |
|
 |
Sponsor
|
|
 |
Punisher
Administrator

In Game: The Punisher Gender:  Joined: May 04, 2012 Last Visit: Nov 01, 2019 Age: 22 Posts: 740
Reputation: 4027   votes: 3 Medals: 2 (View more...)
Status: Offline
|
Posted: Sat Jan 03, 2015 12:37 am
Post subject: Re: How?? |
|
|
Hi mate, Floo made a tutorial about editing ranknames in rocmod.check out the forum at the tutorial section and watch the sof2modding topic thr source cde tutorials are mentioned there at the moment the only one. |
Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist
<a><img></a>
<a><img></a> |
|
 |
|
 |
Punisher
Administrator

In Game: The Punisher Gender:  Joined: May 04, 2012 Last Visit: Nov 01, 2019 Age: 22 Posts: 740
Reputation: 4027   votes: 3 Medals: 2 (View more...)
Status: Offline
|
|
 |
|
 |
kingsfloo
Moderator

Gender:  Joined: Jan 15, 2014 Last Visit: Mar 25, 2019 Age: 26 Posts: 57 Location: Argentina
Reputation: 328.3   votes: 1 Medals: 2 (View more...)
Status: Offline
|
Posted: Mon Jan 05, 2015 7:35 am
Post subject: Re: How?? |
|
|
about the extra rangs isn`t really hard.....just check the source code of rocmod 2.1 c what u can get in this site....see how he others rangs are added, then just do the same for your own rang.....the steps what i follow when i do it was:
1) check where is the sysop
2) create a cvar to add my own rang
3) add the extra lines to do my rang more "powerfull" than the sysop and not just like an admin.
the regeneration....u have 2 options:
1) do it with a timer.
2) do it adding this in some part where Actions happen once a second (check g_active.c of the source).
anyways like punicher say....it`s just posible if u know something about coding.......mmmmm.....well i didnt knew nothing about it....mmmm...check the others posts about how to start to handle the rocmod source then when u know someting about it if u want post again  |
|
|
 |
|
 |
Sponsor
|
|
 |
abdouraoui
Pro Poster

Joined: Aug 23, 2013 Last Visit: Sep 05, 2018 Posts: 21
Reputation: 43.9   Medals: None
Status: Offline
|
Posted: Mon Jan 05, 2015 10:12 am
Post subject: Re: How?? |
|
|
ok thanks  |
|
|
 |
|
 |
Punisher
Administrator

In Game: The Punisher Gender:  Joined: May 04, 2012 Last Visit: Nov 01, 2019 Age: 22 Posts: 740
Reputation: 4027   votes: 3 Medals: 2 (View more...)
Status: Offline
|
Posted: Mon Jan 05, 2015 2:14 pm
Post subject: Re: How?? |
|
|
Ill check the sc when my compile errors has been fixed, but what floo said is yhe thing what your looking for.
Anyhow you can use his server mod ( kings mod v2) if you just want other rank names, he made it so you can change messages and ranks e.g headshot msg, or admin rank name. |
Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist
<a><img></a>
<a><img></a> |
|
 |
|
 |
abdouraoui
Pro Poster

Joined: Aug 23, 2013 Last Visit: Sep 05, 2018 Posts: 21
Reputation: 43.9   Medals: None
Status: Offline
|
Posted: Mon Jan 05, 2015 2:57 pm
Post subject: Re: How?? |
|
|
but in kingmod v2 i can't change recoverhealth andarmor messages and i want to add other ranks
that's why i want the files "rocmod source" for kingservermod who created it floo
if she can send me this files
I want to change only colours in this files and i can compile it |
|
|
 |
|
 |
Punisher
Administrator

In Game: The Punisher Gender:  Joined: May 04, 2012 Last Visit: Nov 01, 2019 Age: 22 Posts: 740
Reputation: 4027   votes: 3 Medals: 2 (View more...)
Status: Offline
|
Posted: Mon Jan 05, 2015 6:20 pm
Post subject: Re: How?? |
|
|
She probably wont share it bcs she wants to stay it unique and not public.
But as she said with not to much knownledge of c(++) you can add the ranks and probably figure out the health timer.
Also this is an old quake engine and cod is running ob same engine. Look in source code tutorials there ( be aware that its another hame but based on aame engine which is same coding. ) |
Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist
<a><img></a>
<a><img></a> |
|
 |
|
 |
Sponsor
|
|
 |
abdouraoui
Pro Poster

Joined: Aug 23, 2013 Last Visit: Sep 05, 2018 Posts: 21
Reputation: 43.9   Medals: None
Status: Offline
|
Posted: Thu Jan 08, 2015 12:27 am
Post subject: Re: How?? |
|
|
i want only the file concerned regenerate health because i tried to do it with my self but i didn't knew :/ |
|
|
 |
|
 |
Baaddwrench
Administrator

In Game: (Old Boys)baaddwrenchLdr Gender:  Joined: May 16, 2010 Last Visit: Jan 12, 2019 Age: 54 Posts: 44 Location: Your mothers bed
Reputation: 3393.1   votes: 1 Medals: 1 (View more...)
Status: Offline
|
Posted: Fri Jan 09, 2015 6:48 am
Post subject: Re: How?? |
|
|
you mean add health/ammo packs to the map? |
 |
|
 |
|
 |
Punisher
Administrator

In Game: The Punisher Gender:  Joined: May 04, 2012 Last Visit: Nov 01, 2019 Age: 22 Posts: 740
Reputation: 4027   votes: 3 Medals: 2 (View more...)
Status: Offline
|
Posted: Fri Jan 09, 2015 11:56 am
Post subject: Re: How?? |
|
|
Baaddwrench wrote (View Post): | you mean add health/ammo packs to the map? |
Best reply ever, hahahahahahaha.
He means when you've been in a shootout and you've been hit and only have 50 health 0 armor your health will be regenerated back to 100 in a period of time. e.g. after 5 sec no hit = 5 health back a sec so in x sec your health will be restored, so the health packs arent really necessairy unless you want your armor back.
Still tho i dont really like regeneration of Health/armor, but if for example it'll regen with 1 a sec, so you'll heal slow and not fast, i would be fine with it, else the better shooters will always will because their health has been regenerated every time.
But the concept is the same as the health pack only it will give you it back in a period of time. |
Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist
<a><img></a>
<a><img></a> |
|
 |
|
 |
kingsfloo
Moderator

Gender:  Joined: Jan 15, 2014 Last Visit: Mar 25, 2019 Age: 26 Posts: 57 Location: Argentina
Reputation: 328.3   votes: 1 Medals: 2 (View more...)
Status: Offline
|
Posted: Sat Feb 14, 2015 11:22 pm
Post subject: Re: How?? |
|
|
abdouraoui wrote (View Post): | but in kingmod v2 i can't change recoverhealth andarmor messages and i want to add other ranks
that's why i want the files "rocmod source" for kingservermod who created it floo
if she can send me this files
I want to change only colours in this files and i can compile it |
with this mod i made every message customisable with a rcon command...i just forget the regeneration message....if u want i can do this message customisable too....if u have this or others request post without shame  |
|
|
 |
|
 |
Sponsor
|
|
 |
|