Modding help


(~Shady~) #1

hi all im new to modding but i’ve learned much the last time… i’ve got some question to you pro’s:P:
1: I need a good script for hitsounds not that one that where allready posted because it didnt worked…:frowning:
2: i want my double kill to see for all
3: i want my first blood and double kill and killingspree message in the center of the screen not on the left.
4: i want sounds for my double kill and first blood soo if someone make it you will hear that sound.(so not the .wav files but the script soo ppl can hear it)

pls help me out!! if you want some info just ask

twanz0r


(kamikazee) #2

I guess this has been made numerous times…


(Jaquboss) #3

learn some basic C and do it yourselfs :stuck_out_tongue:
then you should ask
I think you have nothing from copying other’s work, no joy from it ( as what you’ve suggested was done milion times )


(~Shady~) #4

Guys i know im noob but my problem is: if i add sounds to my script like g_globalsound no one hear it…


(EB) #5

Can you explain more ? this leaves us at point 0 on a scale of 0-10 on sorting out your problem.
(Information is our best friend in here, and he usually invites explanation with him.)


(~Shady~) #6

OK for now i’ve solved the problem too press the message in center of screen (cpm->cp)
this is the code i have for first blood:

In g_local.h

// first blood
extern vmCvar_t g_firstblood;

And:

int         firstblood;

In g_stats.c:

if(!ent->client) {
		return;
	}
    if( g_firstblood.integer && !(g_gamestate.integer == GS_WARMUP) && !(g_gamestate.integer == GS_WARMUP_COUNTDOWN)){ 
      level.firstblood++; 
       
      if( level.firstblood == 1 ) { 
         AP(va(" cp\"%s ^?drew first blood!
\"", ent->client->pers.netname));
		 G_globalSound("sound/twanmod/firstblood.wav");
      } 
   } 

Now the problem here is that he wouldnt play the sound…
Someone any idea’s?


(~Shady~) #7

sound works thanx for help!