-
Content count
684 -
Joined
-
Last visited
Posts posted by BraXi
-
-
I am not a diviner to guess what have you done .
0 -
lossy you litte whore give them back their beloved hands or face uprising, kek.
3 -
-
Been known for awhile, can't rly do anything about it.
remove map from rotation?
0 -
You... you've quoted me again! :angryarnold:
1 -
Glad it works, but please don't quote long posts, there's no need to :dave:
1 -
Thank you for your assistance. I'll try to work out the bugs.
No need to! :awesome:
> had to wake up and pee
> got tempted to see how shitty my code was
> it was shitty shit, indeed
> couldnt sleep
> fixed my shit
:davesir:
here's the fixed and tested code :dave:
#include <string> #include <stdio.h> void todate(char *line) { static const char *months[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; int date[3]; // day, month, year char tokens[3][32]; int i, x = 0; int token = 0; memset(&tokens, 0, sizeof(*tokens)); //initialize char arrays as they're most likely populated with trash for (i = 0; i != strlen(line)+1; i++) //we're iterating through the whole line char by char to find delimeters, either - or / { if( token >= 3 ) break; // we're out of dd/mm/yy char ch = line[i]; if (ch == '-' || ch == '/') // found delimeter { tokens[token][x] = NULL; //null termination is a good practise :> token++; x = 0; continue; } if( x >= 32 ) continue; // make sure we don't cause segfault due to OOB len tokens[token][x] = ch; x++; } for (i = 0; i != 3; i++) // go through the raw date[] { char *str = tokens[i]; date[i] = atoi(str); // convert string to integer if (i != 1) continue; //not a month so go back for (int j = 0; j != 12; j++) // loop through 12 months to see if month was written with letters { if (_stricmp(str, months[j]) == 0) //match, strcasecmp() on unix, we assign integer for a given month name { date[1] = j+1; break; } } if (date[1] > 12 || date[1] < 0) //make sure we've got correct month date[1] = 1; } printf("input: %s\n", line); printf("day: %i\nmonth: %s\nyear: %i\n\n", date[0], months[date[1]-1], date[2]); } int main() { todate("12/12/2015"); todate("12-5-2015"); todate("12/8-2015"); todate("12/august/2015"); system("pause"); return 0; }and here's the noice output:
input: 12/12/2015
day: 12
month: December
year: 2015
input: 12-5-2015
day: 12
month: May
year: 2015
input: 12/8-2015
day: 12
month: August
year: 2015
input: 12/august/2015
day: 12
month: August
year: 2015
ps. I've left you a few small bugs and one perf issue, that's an exercise for you to find them :dave: bear the nub will bitch about them as soon as he reads this post :troll:
2 -
disclaimer: i should be fookin sleeping now and i cba to test it myself
disclaimer2: i didn't even read your 1st post and appears i have coded an useless snippet :okay:
edit3: :dave:
1 -
You cannot animate models in MP, instead either split the flak88 cannon into two parts, the barrel (which you'd likely want to rotate), and the rest of it which you wont.
To code a turret you'd most likely want to rotate it in targeted location and then simply spawn the bomb shell at the end of barrel and make it move& catch colision :dave:
0 -
Thank you. It helps.
Also.. another thing. Is it possible to make an usable Flak88 turret in CoD2 (like mg42)?
If it is possible to use it in the singleplayer (in last mission, when you have to destroy a tiger by using Flak88), than maybe you can import the same code to use it in a multiplayer map???
you know it's hardcoded in engine, right? Although you can split the model in two, and code your own turret in gsc.
0 -
ROTU (by Viking), covers EasyAccount because EasyAccount basically changes your profile to be maxed out in everything. What Viking did was make one of the maxed out items (perk, wep, stats etc) useless and the mod would pick up if anyone had this (since there was no way of obtaining it) and then ban them from the mod for cheating to obtain that item.
you're still spreading misinformation just like bosnian, the rotu mod was made mostly by bipo and with help from me and the others including viking, etheross, mr-x and a whole bunch of people :horror:
You probably meant Viking's KTK mod where he used such method :davesir:
Could you explain what was the antihack by BraXi? (Well, BraXi could explain it but not online atm :/)
It's nothing more than keeping a backup of the most important stats such as rank, xp and unlocks in a diferent place, and verifying them against the "real" stats, but since most of the admins are wannabes, they don't even configure it properly in server config. anyway, the method can be found in:
https://github.com/BraXi/CoD4_DeathRun_1.2_Mod/blob/master/deathrun_dev/braxi/_rank.gsc#L92
0 -
Well I clutched 4 vs 1 so fk u :P
no u
#TheDownvoteStream
0 -
in Suggestions
self setClientDvar( "cg_fovscale", self getStat(<fovscale_stat>)/100 );
[....]
// in menu
setFovScale( fovscale )
{
self setStat(<fovscale_stat>, fovscale*100 );
self setClientDvar( "cg_fovscale", fovscale );
}
[....]
self setFovScale( 1.15 );
0 -
ya'll stupid (apart from braxi letting refugees in without proper checks but still that's a diffcult topic because a lot of eastern countries are racist. xenophobic and poor compared to western countries and lets be serious, would you want to live there after fleeing from a civil war? anyway i think most of them aren't even from syria so...)
I wouldn't say we're racist, we've always been mostly monolithic with about >85% of poles and miniorities such as muslims (tatars), gypsies, koreans, judes, ukrainians and russians living in some places in poland. the thing is even our tatars are strongly opposed to accept 'refugees' (it's illogical to say they or we are xenophobic).
0 -
Yea I hope nothing like this happens again..
sure, let's do nothing, what can go wrong
0 -

Your prayers have been listened! Your and thousands of others with pictures of french flag has made ISIS back off and surrender.
Western Europe why are you so silly and stupid? ;_;
What is even the most stupid thing I've ever seen, and I guess there couldn't be anything more stupid than this, is that the next day after terrorist attack in paris were demonstrations of people wanting france to stop accepting refugees but it's been stopped by those who are pro-imigration even through the day earlier they were crying due to it's consequences.
What we've seen in France is an example of stupid ideology of letting pretty much every refugee in without checking identity of each person crossing the EU border. Well, how the fuck we still call them refugees, maybe 10% of them are really seeking for help, the others are not even from countries burried in war and only want to get grants and/or are terrorists. :whistle:
And to prove I'm right, if they were all seeking for help their destination wouldn't be just france, germany, england and other rich countries but pretty much any where they could get help (not a fucking money). Some of refugees asked if they would stay in Poland if we accepted them have stated they would still cross the border and get to Germany due to higher grants :dave: Some even said 500eur/person (2300pln+) our gov offered to them is "too little to survive", but tbh in Poland it's pretty much a lot and you can buy loads of shit for that.
tl;dr: close the fucking outer borders , use army to help greece and italy control their borders, check identities of every refugee currently in EU, kick them out of european union if they're just a fucking scums.
inb4. somebody calls me facist because I'm against accepting 'refugees' :dave:
6 -
https://github.com/BraXi/CoD4_DeathRun_1.2_Mod/commit/82c6d58d2dc592ff280b04149767c103e5b34d1e
looks like i forgot to remove loadfx() after CP :dumb:
0 -
that way you back off, activate UAV, and then continue slaughter :dave:
2 -
Also, is there a possibility to make killstreaks stack in the "inventory" like in other CoD's?
there is, but I'm pretty sure it would be too OP and shit.
1 -
main() { printf("hello world"); }
3 -
Happy belated birthday homie
he aint ya homie, nigga
Happy birthday beatthat! Let the force be with you ᕦ( ͡° ͜ʖ ͡°)ᕤ
1 -
I don't have time to look at it now, but the error in part #2 is due to "itemID" not being used anywhere in your macro, also if you're going to use WEAPON_NINJA macro more than once in one menu, i'd suggest adding that itemID to item names, for example:
this:
name "button_weapons_off" \ [...] hide "button_weapons_off" \
becomes:
name "button_weapons_off"itemID \ [...] hide "button_weapons_off"itemID \
#edit try:
#define WEAPON_NINJA( x, y, itemID ) \ itemDef \ { \ rect x y 117 21 NINJA_ALIGN \ name "button_weapons_off"itemID \ style WINDOW_STYLE_SHADER \ background "button_weapons_off" \ visible 1 \ decoration \ /*dont remember if it works with buttons or not, prob no*/ type ITEM_TYPE_BUTTON \ mouseEnter \ { \ play "mouse_over"; \ show "button_weapons_on"itemID; \ } \ mouseExit \ { \ hide "button_weapons_on"itemID; \ } \ } \ itemDef \ { \ name "button_weapons_on"itemID \ rect x y 117 21 NINJA_ALIGN \ style WINDOW_STYLE_SHADER \ background "button_weapons_on" \ type ITEM_TYPE_BUTTON \ visible 0 \ action \ { \ scriptMenuResponse itemID; \ close self; \ open "team_select"; \ } \ } \ itemDef \ { \ visible 1 \ rect (x-50) (y+19) 220 35 DR_BUTTON_ALIGN \ textalignx 0 \ textaligny 0 \ forecolor 1 0 0 1 \ exp text( tableLookup("mp/itemTable.csv", 0, itemID, 5) ) \ textfont UI_FONT_NORMAL \ textalign ITEM_ALIGN_CENTER \ textscale 0.4 \ decoration \ } \0 -
20:36 - lennyS (2): kurwa you play another match? boost smurf to supreme too
20:37 - Użytkownik lennyS zmienił status na: Offline.
:DUMB:
0 -
For the next time please mark the topic with [cod2] tag or something so we know that in future. And again, if it's cod2 instead of "raw" search for that file in one of .iwds
edit: it's in iw_07.iwd
1
in General Help
Posted · Report post
Probably soundalias for "gate_open" is map specific, change it to all_mp