Viking

Members
  • Content Count

    410
  • Joined

  • Last visited

  • Days Won

    16

Viking last won the day on April 17

Viking had the most liked content!

Community Reputation

36 Excellent

11 Followers

About Viking

  • Rank
    Senior Member

Converted

  • Site
    https://discord.gg/wDV8Eeu

Recent Profile Visitors

1899 profile views
  1. You create maps in radiant (*.map). During the compiling the Compiler creates the *.bsp and *.d3bsp files. I am not 100 percent sure but i think one of them contains the geometry and the other the light informations. In the final step they are compressed into the *.ff You can easily follow the procedure when you keep an eye on the cmd window during the compile process. when you take a look into cod2 mapping you will notice that there was no *.ff, the game used the *.d3bsp to load the map. (please correct me when i am wrong, it's quite a while that i mapped and took a look into the single steps, eapecially cod2)
  2. why not removing the grenades from the player loadout straight after spawn?
  3. Change the Buttons so they send a menuresponse to the server. in gsc catch the Response and set a stat. Whenever the client connects to the server read the stat and overwrite the dvar.
  4. ok fine, but why do you post that here? this side is not related to c4s in any way.
  5. Current fs_basepath: . Current fs_homepath: /home/cod4x/.callofduty4 I would say your basepath is wrong and the server looks for mod/scripts/etc in the hidden folder ".callofduty4"
  6. to show messages in chat like b3 you don't need a hud, that's just wasting ressources. all you need is to add a loop that executes the say command on the server. something like init() { messages = []; messages[0] = "hello"; messages[1] = "world"; curMessage = 0; delay = 30; while(1) { if(curMessage >= messages.size) curMessage = 0; exec("say " + messages[curMessage]); curMessage++; wait delay; } } edit: you can use dvars instead of plain strings, that way you can change the messages easier.
  7. I thought it would be possible with a plugin, just like replacing a gsc with gsx to tell cod4x to use the function in the plugin instead the function from source. my goal is pretty simple, i want to remove the scoreboard when the player sends the +score command to the server and the game is not in intermission. https://github.com/callofduty4x/CoD4x_Server/blob/0581a7dc6c53b834877103e5982d9c8ab845b3c3/src/g_cmds.c#L708
  8. Hmm, no idea how to do something like that.
  9. I would say that's a problem of the map, which has a bad helicopter flypath. You could loop through the fly path entites and check which one has a missing target and define it manually. Best you do that local and draw the fly path, then you should see pretty fast what's wrong and what target you have to define.
  10. I came across this when checking some existing plugins and noticed it in b3hide. But i think this is not what i am looking for. The function of cod4 i would like to modify is not called by gsc or server cmd directly. (not sure how to name it, i am not a programmer) As a short example: https://github.com/callofduty4x/CoD4x_Server/blob/0581a7dc6c53b834877103e5982d9c8ab845b3c3/src/scr_vm_main.c#L611 imagine i would like to add a debug print when this function finished. But to be able to use it on any Server i would like to compile a plugin with that modification instead of compiling a custom cod4x server Binary.
  11. Hey guys, I would like to change a function of cod4 which is public in the cod4x source. What do i have to do to make the server use my modified function instead the one in the cod4x binaries? Thanks in advance
  12. Viking

    error

    yes you are right. mp_dome has a custom script of exploding barrels and the function "oil_spill_burn" is spawning a test entity but never deletes it. since the function is called in a loop you get that crash when the max amount of entities is reached. the entity is never used again so i have commented it out. i recommend you add that script to the mp_dome.iwd because throwing it into your mod/main_shared folder could break other maps that use a script with the same name. i did not look further but i guess this should fix your crash. maps.rar
  13. Viking

    error

    You have a code that spawns entities. Either to much in total (bad loop?) or they don't get deleted after usage.
  14. Hey guys, i have a server with bots that starts to lag when there are 10+ bots alive. the bot script is my own and i think there is a fault somewhere that produces the lags - because other bot mods work fine. the console does not throw out any errors that's why i would like to know if there is some kind of performance monitoring that shows all running threads and the ram/cpu they waste. or do you know any other way to backtrace the root of all evil? thanks