.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...
Posts | ||
---|---|---|
darkplaces extensions - callfunction | Locked | |
Thread Options | ||
|
Jan 13 2016 Anchor | |
This is an interesting quake-c extension:
"callfunction" causes the engine to call the function indicated by the passed parameter. It seems that function better exist:
so:
This has many possibilities, including remote server admin with "rcon sv_cmd {function}", custom map design, csqc operation, etc. I have decided to fix that in the engine port. This can be bulletproofed. Fixed. Edited by: numbersix |
||
Feb 11 2016 Anchor | ||
Kool that you are modding the DP eng, I always wanted to get into that. Apparently there is a svn on the homepage where you can collaborate with the rest of the devs and possibly they may include the changes on an autobuild. Apparently there is a new autobuild made every 6 hours. But on this isfunction built in , I have not tried it, but I thought the checkextension function was suppose do basicly do the same thing? For example, the sound () built in in older DP engines does not have the capability to pitch the sound like newer versions past a certain build - Im not sure what the build exactly is , it may be Nov 2011. But lets say you join a server thats pitching the sound for when the rocket launches, and the clients connected have older DP engines, they will crash with an illegible server message once the sound is played. So as a fix I tried this:
|
||
|
Feb 11 2016 Anchor | |
I checked callfunction. Turns out I fixed it:
If "sv_prvm_warn" is true - it only issues a warning. That also stops another fail. I really need to do an atari 2600 game or something. Maybe c64, I know a lot more about that system. >checkextension function was suppose do basicly do the same thing? isfunction checks a text string to see if it corresponds to any qc function. callfunction calls it, but you cant use parms. Server cant tell much about clients outside of the usual network comms. Technically I'm not modding dp, but a gpl port. Edited by: numbersix -- \|/ |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.