Dont forget to clean up the list upon sniper joining spec and/or on sniper joining other team/autobalance.
Dont forget to clean up the list upon sniper joining spec and/or on sniper joining other team/autobalance.
a lot of nuances, mode and so on, how people choose weapons, once or each (as an example).
default _weapons.gsc:
restrictWeaponByServerCvars(response)
{
SNIPER_LIMIT = 1;
if...
How can I make there is only one sniper per team?
example: axis only a kar98ksniper and if a player select the sniper (in addition to the one who already has it) be assigned another weapon (kar98k)...
nice job, i got it it working pretty easily
only problem is i have to copy the file inside wsl, if i use them from /mnt/c/User.. it says .iwd not found when launching run.sh
for the network stuff...
See here: https://killtube.org/showthread.php?4465-cod2-Running-your-own-libcod-server-using-WSL2-on-windows
Public network connectivity.
Option 1: Just forward the ports from your host to your vm using https://gist.github.com/xmeng1/aae4b223e9ccc089911ee764928f5486
Option 2: Bridge mode.
Open...
I was able to access the files and edit them with the results affecting the vm. Also, creating a new folder worked.
Hello,
This is a tutorial on how to run a libcod-enabled cod2 server on WSL2, on top of windows 10. This is a very quick and dirty tutorial.
This tutorial assumes you have a working wsl2...
You can do this via GSC scripts:
With libcod:
https://killtube.org/showthread.php?3153-callback-RCON
Without libcod:
level endon("intermission");
setCvar("customcommand1", ""); // can be...
I think he's asking to add like /rcon yourmom to do a thing.
Cmds like map_restart are static and can only be added through engine itself.
But you can edit libcod and add your own cmds there by using Cmd_AddCommand
...
how to make a script that runs a cmd on the console? Like rcon map_restart
Ok it worked!!! First i put all the current map spawnpoints in an array with
level.customspawns = getentarray(spawnpointname, "classname");
Then i added my custom spawnpoints as
...
You dont get an entity using spawnstruct. Gotto spawn(), but you cant spawn something with a custom classname.
As such, maybe try moving your existing spawnpoints? Also, you could just hijack the...
Hi
As you can tell from the title i'm trying to add custom spawnpoints to a map.
spawnpointname = "mp_dm_spawn";
spawnpoints = getentarray(spawnpointname, "classname");
...
1. Monitor if the player switches weapons
2. Replace unused slot with the "third weapon", saving the old info as the new "third weapon".
3. Done.
there is primary and secondary weapon slot. you should bind a key to an additional weapon and replace that to primary or secondary. but before replacing you should save all the weapon info, so when...
Hello everyone.
I'm interested in the introduction of a third weapon slot in the mod.
Once upon a time, I saw in some kind of global modification, how, along with the main weapon (Thompson, Colt),...
Yes, I work sometimes on the docs when I got the time for it.
Currently there are quite a few libcod functions missing, but first I want to check and remove stock functions from CoD4 and add the...
Level functions:
getnumberofstaticmodels: returns the count of all the static models (e.g. classname "misc_model")
getstaticmodelname
getstaticmodelorigin
Example code:
onSpawnedPlayer()
{
That should work most of the time.
Keep in mind that if you're using a login system, do not let the player spawn until the bar() function has completed with success. If no success, re-try the...
self [[level.spawnSpectator]]();
self [[level.spectator]]();
self notify("joined spectators");
Ok i finally got it to work. I also had to set the function pointer "level.spawnSpectator =...
Not like this, self [[level.spectator]](); is all you need to move player to spec.
moveplayer()
{
self [[level.spectator]]();
}
Thank you but the problem still exists. It shows me as spectator on the scoreboard but i can still see my score. So i guess it does not properly leave the team.
moveplayer(team)
{
...
self [[level.spectator]]();