Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Custom Medals
#1
Rainbow 
Hey again! This is my 'fast-stupid' tutoral. I will show and tell how to make custom medals or 'custom popup'
Medal - this thing like wager, or messages as "Tripple kill!" etc [Image: screenshot.c9d03f5a90b1421c29d602c59f437...320692.jpg]

You need thoose files:
  • raw\mp\medalTable.csv
  • raw\maps\mp\_medals.gsc
  • mod.csv
  • Localized Strings knowledge
  • Mod tools
  • OMA

I will use my string: MODMEDAL_TESTTEXT

1. Copy raw\mp\medalTable.csv to mods\mp_YOURMOD\mp\medalTable.csv

2. Create in mp_TESTMOD folders (with using AkelPad etc):
Quote:english\localizedstrings\modmedal.str

3. Open this file and put following lines:
Quote:VERSION "1"
CONFIG "C:\projects\cod\t5\bin\StringEd.cfg"
FILENOTES ""

4. Now Open your medalTable.csv file and make custom medal following default medals as example:
- FOLLOW THIS:
Quote:NUMBER OF MEDAL,MEDAL TYPE (NAME),MEDAL TEXT,MEDAL DESC,XP,XP2,0

5. Go in end of file and find last line, you will see number:
Quote:62,MEDAL_AIRCRAFT_ASSIST,MEDAL_AIRCRAFT_ASSIST,MEDAL_AIRCRAFT_ASSIST_DESC,0,0,0

6. Create custom (following 4th msg):
Quote:63,MEDAL_CUSTOMTEST,MODMEDAL_TESTTEXT,MODMEDAL_TESTTEXT_DESC,100,100,0

7. Now go to
Quote:mp_YOURMOD\english\localizedstrings\modmedal.str
and open it

8. Add thoose lines:
Quote:REFERENCE TESTTEXT
LANG_ENGLISH "Test medal"

REFERENCE TESTTEXT_DESC
LANG_ENGLISH "Test medal description! This is works!"

9. Save files.

NOTE: Do not use 'self processMedal( );' function! You can be banned, because this Stats Modifer! Read 11th msg for call medal

10. Find
Quote:raw\maps\mp\_medals.gsc
and move to
Quote:mp_YOURMOD\maps\mp\_medals.gsc


11. Copy this functions ( fixed by me )
Quote:processModMedal(medalName)
{
self thread giveModMedal( medalName );
}

giveModMedal( medalName )
{
self endon("disconnect");

if ( level.teambased )
xp = level.medalInfo[medalName]["xp"].team;
else
xp = level.medalInfo[medalName]["xp"].player;

self.score += xp;

addMedalToQueue( level.medalInfo[medalName]["index"] );

}

and put in
Quote:mp_YOURMOD\maps\mp\_medals.gsc
in end of file...
NOTE: Only in _medals.gsc !

12. Now for call medal use:
Quote:self maps\mp\_medals::processModMedal( MEDAL TYPE (NAME)! );
Ex.
Quote:self maps\mp\_medals::processModMedal( "MEDAL_CUSTOMTEST" );

13. Build your mod and test!
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#2
++ cause you need OMA
Reply

#3
[Image: images?q=tbn:ANd9GcSZ0iC33qVpwTsvAeGpf78...kDXamCouaI]
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
Nice tutorial but I doubt using that fucking will get you banned. Also you don't have to use
Code:
self endon("disconnect");
in a function without a loop..

ninja edit: I just typed fucking instead of function, i'm going to hell Sad
[Image: MaEIQ.png]
Reply

#5
+1 bullet.
Reply

#6
There is will like:
"Tripple kill!"
You not will banned rofl.. i edited and deleted stat modifers ..
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#7
If we are able to use a function that gets us banned, then thats obviously Trollarch's fault. Afaik they never told us we may NOT use it. They released the files with the modtools so we are allowed to use the function.
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#8
i said there is was statAdd function .. i deleted it ... so not bannable
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#9
(08-16-2011, 21:59)iAegle Wrote: If we are able to use a function that gets us banned, then thats obviously Trollarch's fault. Afaik they never told us we may NOT use it. They released the files with the modtools so we are allowed to use the function.

Mod tools don't have this file _medalTable.csv. Big Grin
Reply

#10
(08-16-2011, 22:01)Se7en Wrote: i said there is was statAdd function .. i deleted it ... so not bannable

statAdd doesn't add anything if its not a valid value/name
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,414 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,043 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,722 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,280 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,521 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,506 06-22-2013, 07:33
Last Post: mattyman
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 154,599 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,512 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,151 05-18-2013, 22:19
Last Post: mitchhacker
  Custom load screen mw3? balakent 4 4,516 05-04-2013, 14:48
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.