TE_WORLDDECAL blood ? btw (win | linux )
2 Attachment(s)
Hi !
i have problem in this MSG (TE_WORLDDECAL) when i hook it in FM_EmitSound.. i get the msg in windows when i tested it but in linux i see numbers ? PHP Code:
2) in linux |
Re: TE_WORLDDECAL blood ? btw (win | linux )
It could be a corrupt decals.wad file on the Linux server OR
the Linux server precaches the WAD files in a different order from the windows one, which will screw up the decal index order. Try this, change -> Code:
write_byte(random_num(27, 40))Code:
write_byte( get_decal_index( "{247" ) )decal on the Linux server, then the file is corrupt. You shouldn't be using hardcoded values for your indexes anyway. Use an array of the actual decal names ( {blood1 ... {blood8 etc.) then choose a random name and use get_decal_index( ) to lookup the proper index to plug into your code. |
Re: TE_WORLDDECAL blood ? btw (win | linux )
Thx for rply how i can make random string ?
this all msg what i need : PHP Code:
|
Re: TE_WORLDDECAL blood ? btw (win | linux )
Just create an array of integers and cache decal indeces on plugin_cfg.
Code:
new g_decal_index[14] |
Re: TE_WORLDDECAL blood ? btw (win | linux )
thx gold guys
the idea has become clear now solved. |
| All times are GMT -4. The time now is 20:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.