Server Developers
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by T-Max

  1. Looks like a battle royale request. Well, you can implement some kind of binary space partitioning algorithms to be able to find if entity is inside or outside of shape. But this is overcomplicated for gsc scripts so better use sphere.
  2. I saw the function that changes map names and it is not applicable to our project because, surprise, it is not mw3 and we do not know what they tried to find with their own memory scanner.
  3. If you think there is a way - go ahead, show us I'm wrong.
  4. There is no way to do that.
  5. self.targetID = -1; self thread TargetTest(self.origin); self thread TargetTest(); self.targetID = getClosestTarget(origin); self.targetID = getClosestTarget(self.origin); And post error message one more time but include one more line. 4 instead of previous 3.
  6. It's the only place where addressing field object. Plugin_Scr_AddUndefined(); Your plugin function returns undefined or int - not good. Return -1 - it still integer and it means "no index in array found" since you're working with array.
  7. Make sure "self" is not an integer. Field objects are structs in gsc. Entities are field objects too. And you missed "^" pointer in script runtime error block. It helps to see what caused error.
  8. T-Max

    web site very slow

    Well, Russian VPN is kinda good because no one cares what you doing here HAHA
  9. It's view hardcoded. You can change it only by changing some of client variables by setClientDvar.
  10. There is a menuresponse invoked when you opens score tab.
  11. T-Max


    self is a special variable. You can do something like that: something = spawnstruct(); something.test = 1337; something foo(); ... foo() { if (self.test == 1337) { // Yep. } }
  12. T-Max


  13. You can remove didyouknow itemdef from loading screen.
  14. selectStringTableEntryInDvar command was removed.
  15. Relax, you can't compile mysql plugin for dev_newarch. There are no interface provided.
  16. I can't say how you can achieve that visibility in "replay" (aka "killcam") mode, but you definetely can and some of finalkillcam mode used that - in final killcam you can see overlay not exist in usual play.
  17. Oh, then you can use gsc "getVelocity". It retuns 3 dimensional array. To get speed, use square root from sum of squared components. Yea, speed is vector length.
  18. Why? Do you like to overfill GUI with useless information?
  19. Menu stuff is client-only stuff. When you set dvar inside menu keep in mind you set local client dvar. Other way: When client connects set new userinfo dvar. Then, if you change dvar using menu, you will be able to get it on server. I forgot gsc command to get userinfo dvars, @fraggy can tell you what command is it. And yea, in this case this userinfo dvar used only as pipe from client to server and vice versa. You have to save real dvar value to stat or other non-volatile dvar because when you initially set dvar as userinfo - you have to send new value which overwrites player preference. And, you know, using stats is better - it's built-in functionality. Very nice for storing integer values but you can't hold user input string.