These are extracted from the asset manager:
Surface Surface Surface
Unknown Type Flags Extra flag
------------------------------------------------------------...
These are extracted from the asset manager:
Surface Surface Surface
Unknown Type Flags Extra flag
------------------------------------------------------------...
Should be these CONTENTS_ flags: https://github.com/iortcw/iortcw/blob/master/MP/code/qcommon/surfaceflags.h
#define CONTENTS_SOLID 1 // an eye is never valid in a solid
...
set this function to libcod:
void gsc_utils_getweaponidbyname() {
char* weapon;
if(!stackGetParams("s", &weapon)) {
printf("scriptengine> wrongs args for:...
I was tried to achieve with libcod to make a weapon with script (set sounds and everything else) so I get almost every offsets for the weapons. If you need I can send it. It contains the boltaction...
https://farm6.staticflickr.com/5569/14902074276_27679fa893_o.jpg
Cut image in parts, show dot on map of scotland. Tell user to match that place to a certain scottish clan, identified by their kilt
Hey, i've been searching through my dropbox trash and found some stuff i made a while ago. Its a transparent water with tweaked hlsl shader. Unfortunately it's D3D9 only.
Here is how it's looking:
...
Heres a working version of CodeCallback_FireGrenade for cod2 1.3:
Possible uses: nade explosion timer and preventing people from changing team after throwing a grenade (prevent those filthy...
Hi, sry for the late post but i wasn't sure if its stable enough. I was able to push the download speed to 19 kb/s by reversing the entire download function and forcing some values in it. I tried...
No, it does not.
Try kicking a player over 9, it will crash on the isint() part.
Use this instead:
isint(string)
{
return ((int(string) + "") == string + "");
Hi, title says it, im going to show you how to export playermodels from source engine to cod(2) (Multiplayer only!!). Its not really a direct export since it requers some work, but its not too...
I digged some time through the animation functions and I could set a new animation, but it was instantly resetted. Maybe this helps you to look further without redoing whats already done.
libcod,...
Maybe it is a difference between 1.0 and 1.3 (= where i tested it).
Edit: In 1.3 i get this:
clientaddress_to_num = -55, gentityaddress_to_num = 0
The code doesn't work correctly, because a2 isn't a client address but a gentity address.
You need to replace 'clientaddress_to_num' with 'gentityaddress_to_num' to get a valid client number....
I think the problem is "j_mainroot" bone. When you import a *.tanim file in Maya the "j_mainroot" bone goes to the origin (Translate Z is about 0) and when you try it in cod2 the character is in the...
It should not be called isTouching() because there is already a built-in function with that name to determine if you are within a trigger range. Call it something else please.
When i decompile that function then i get a bit different code.
Edit: it might be useful to make code callback function like player commands (ClientCommand).
Then you can decide in CoD if you...
https://.../libcod/binaries.7z
Contains both 1.0 binary for MP and SP.
I searched it that function name in the Mac binary. It contains all the functions names and more.
Edit: you only need the code within else curly brackets.
It does work for me, but you first need to bash once and then melee is blocked. But I should be able to fix that.
while(isAlive(self))
{
self setweaponfiremeleedelay(1000); // keep forcing...
I added them last night and included 1.2. I was working on changing g_gravity per player :).
https://github.com/M-itch/libcod/commit/6dee9a7d9b12b8f0ba7f4ec360dac4ef9608efb7
Edit: this should...
Should be the same order as it is in the binary, the table lookup is just an index of it. Also fits with my CoD version, loc_language = 2, which fits with binary order.
lang = [];
...
I tried firetime, but i don't get the exact values as in the weapon files back and when i change the value it bugs your weapon. Also it has no affect on your fire speed.
Edit: read value:...
I have been adding weapon related functions to my libcod git the last few weeks.
Also I found out how the weapons use their move speed scale. So i added this cod4 function to cod2 :D.
player...
Heres a small tutorial for you all.
It will allow you to settext() to any clienthudelem any string you desire.
Known bugs: does not work properly with killcam and .archived = true (so set...
I just discovered this. I didn't know of its existence until I saw it in COD1 (it's not used in COD2 at all, and there isn't any reference to it), so I thought I'd share:
If you want to show a...