PCS Game Hosting
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Private MessagesLogin, Check Messages    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » General Chat » ChamChom
 View previous topic :: View next topic  
Author Message
Vazzy
Poster Member
Poster Member



Joined: Sep 13, 2013
Last Visit: Dec 01, 2017
Posts: 3


Reputation: 3.6
Medals: None

Status: Offline
PostPosted: Fri Sep 13, 2013 2:29 pm
PostPost subject: No icon ChamChom
Reply with quote

Hello Everyone,

I'm wondering if ChamChom is still around. A few years ago, he posted a source code for rocmod to have user prefixes on sof2, such as ** Visitor ** - ** Clan ** etc before their name when they talk.

I'm looking for this source, as I am working on a new mod for sof2, Which will be released very soon.

Does anyone know if he's still around?

Regards,
Vazzy
Back to top
View user's profile Send private message
Sponsor
Smiley face
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Distinguished Uploader (Amount: 1)

Status: Offline
PostPosted: Fri Sep 13, 2013 4:34 pm
PostPost subject: No icon Re: ChamChom
Reply with quote

when i start modding i'd liked to do the same, i find out 1 way to do it so far and that was to add a few lines of a code in the source of rocmod, and than using a CFG File to change the names.
I downloaded it from something, ( NOt from ChamChom ), but i dont know where...


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: Dec 13, 2017
Age: 36
Posts: 1133
Location: Milan
Italy.png 
Reputation: 4732
votes: 6
Medals: 6 (View more...)
Website Founder (Amount: 1)

Status: Offline
PostPosted: Mon Sep 16, 2013 4:35 pm
PostPost subject: No icon Re: ChamChom
Reply with quote

have you guys tried to looking for here in the downloads?  Cool


Game Hosting: www.proclanservers.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Distinguished Uploader (Amount: 1)

Status: Offline
PostPosted: Mon Sep 16, 2013 4:59 pm
PostPost subject: No icon Re: ChamChom
Reply with quote

i Know what he means @ Hannibal-Lectar has asked the same and Thomas had one, i dunno if he gave him it, but it was private so he didnt release it.
but i know somewhere on Google is the Source Code of it, because i have had it too about a year ago.
I study'd it, and found out what lines i needed to add, and in what file it was, but i dont know it anymore.
Anyways, maybe theres some1 else who still have it or know where the download is.


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Sponsor
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: Dec 13, 2017
Age: 36
Posts: 1133
Location: Milan
Italy.png 
Reputation: 4732
votes: 6
Medals: 6 (View more...)
Modder (Amount: 1)

Status: Offline
PostPosted: Mon Sep 16, 2013 5:08 pm
PostPost subject: No icon Re: ChamChom
Reply with quote

i think i got it. I cant remember if i uploaded here or not. I try check 2night in my home PC.


Game Hosting: www.proclanservers.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Vazzy
Poster Member
Poster Member



Joined: Sep 13, 2013
Last Visit: Dec 01, 2017
Posts: 3


Reputation: 3.6
Medals: None

Status: Offline
PostPosted: Tue Sep 17, 2013 3:53 pm
PostPost subject: No icon Re: ChamChom
Reply with quote

I decided to give it a go myself, and have successfully completed it.

The code i've used to make these chatprefixes work:

// Visitor
   if(ent->client->sess.modData->clan == 0 && ent->client->sess.modData->adminref == 0) {
       type = "^1** ^7Visitor ^1** ";
   }
   // Clan
   if (ent->client->sess.modData->clan == 1 && ent->client->sess.modData->adminref <3>client->sess.modData->adminref <2>client->sess.modData->adminref <1>client->sess.modData->adminref == 1 && ent->client->sess.modData->clan == 1) {
       type = "^1** ^7Referee ^1** ";
   }
   // Admin
   else if (ent->client->sess.modData->adminref == 2 && ent->client->sess.modData->clan == 1) {
       type = "^1** ^7Admin ^1** ";
   }
   // Sysop
   else if (ent->client->sess.modData->adminref == 3 && ent->client->sess.modData->clan == 1) {
       type = "^1** ^7Sysop ^1** ";
   }

Note, these prefixes will only work when the player has clan status - I had it first so it would only check the referee, admin, sysop rank - but when talking it kept saying ** Clan ** while my rank was sysop. (Might going to look into that later)

Paste this into the G_Sayto function, somewhere at line 1496 - compile it and it should work.

Any bugs/issues please let me know and I will most likely fix them.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index »  General Chat
 
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts xS~mod 8.0 8 system 7980 Tue Aug 20, 2013 2:50 am
gedo View latest post
No new posts Mod tutorial 10 VenOm 6225 Sun Dec 30, 2012 9:01 pm
Teo View latest post
This topic is locked: you cannot edit posts or make replies. Graavie's mod 4 Graavie 3512 Thu Oct 18, 2012 8:22 pm
Teo View latest post
No new posts Psychooo MoD v.2 7 CroPsychooo 4553 Sun Dec 11, 2011 10:41 am
music View latest post
No new posts Deurkruk's mod 2 Deurkruk 2245 Tue Jul 19, 2011 1:47 pm
Deurkruk View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©