Scripting Healthpacks that drop on death
Moderator: Core Staff
Re: Scripting Healthpacks that drop on death
/RCON scr_say test
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Scripting Healthpacks that drop on death
Don't need to do rcon, I (client) am the server. I did try rocn anyway though, still get the same "unknown cmd scr_say".
-
Re: Scripting Healthpacks that drop on death
Well the thing is..
If you don't have it set before, it will give you an unknown cmd.
Means typing /scr_say Hello , will simply give an unknown cmd error.
But if you set it before with SetDvar("scr_say","nothing"); in a script, or as a client with /set scr_say nothing,
Then type /scr_say Hello, it won't give an unknown cmd error.
As I wrote before, what happens if you simply type it in the console, without hitting enter, like this:
Does yours say: default nothing ? If it doesn't, it wasn't set before per script.
If you don't have it set before, it will give you an unknown cmd.
Means typing /scr_say Hello , will simply give an unknown cmd error.
But if you set it before with SetDvar("scr_say","nothing"); in a script, or as a client with /set scr_say nothing,
Then type /scr_say Hello, it won't give an unknown cmd error.
As I wrote before, what happens if you simply type it in the console, without hitting enter, like this:
Does yours say: default nothing ? If it doesn't, it wasn't set before per script.
You do not have the required permissions to view the files attached to this post.
Re: Scripting Healthpacks that drop on death
F |Madness| U wrote:Don't need to do rcon, I (client) am the server. I did try rocn anyway though, still get the same "unknown cmd scr_say".
In that case, run it as a dedi server, as setcvar doesnt work on non-dedi servers.
Use /rcon scr_say hello world then.
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Scripting Healthpacks that drop on death
I run all CoDJumper mod alpha tests on local non-dedi servers, ofcourse setDvar works.IzNoGoD wrote:In that case, run it as a dedi server, as setcvar doesnt work on non-dedi servers.F |Madness| U wrote:Don't need to do rcon, I (client) am the server. I did try rocn anyway though, still get the same "unknown cmd scr_say".
Use /rcon scr_say hello world then.
I rechecked the code and noticed what I typed was already in place in your script, my bad...
Can you post the code leading up to the "sayCommand()" being called.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Scripting Healthpacks that drop on death
I think it's something extra I have to do with Black Ops. I tested the code on CoD4 and it worked fine. After doing a tiny bit of research I think I have to `Whitelist` my custom dvars. Gonna test it out anyway and see how I get on.
http://wiki.modsrepository.com/index.ph ... ting_Dvars
or
http://wiki.treyarch.com/wiki/CoDBO_Building_A_Mod
Edit: Got it working now, I did have to whitelist the dvars. Although the whitelisting tutorial on the official treyarch wiki doesn't work, typical- but I found a way to get it to work.
http://wiki.modsrepository.com/index.ph ... ting_Dvars
or
http://wiki.treyarch.com/wiki/CoDBO_Building_A_Mod
Edit: Got it working now, I did have to whitelist the dvars. Although the whitelisting tutorial on the official treyarch wiki doesn't work, typical- but I found a way to get it to work.
-
Re: Scripting Healthpacks that drop on death
Sounds.. like they made something simple complicated oO
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Scripting Healthpacks that drop on death
I think its used for some patches they block dvars (unwhitelist?) that can be used in bad ways. Instead they could have just made them cheat protected..
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Scripting Healthpacks that drop on death
forgot yhis was for black ops... whitelisting is moronic... but they need it to protect the 'dedicated' server approach they have.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ Worshipper
- Posts: 289
- Joined: December 5th, 2009, 7:12 am
- Location: Australia
Re: Scripting Healthpacks that drop on death
Sorry to bring this thread up again, but how did you get it to work? What's the format of the cfg? ThanksF |Madness| U wrote:Edit: Got it working now, I did have to whitelist the dvars. Although the whitelisting tutorial on the official treyarch wiki doesn't work, typical- but I found a way to get it to work.
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Scripting Healthpacks that drop on death
Create Black Ops/mods/yourmod/myWhiteList.cfg (probably don't need that exact name, but to be sure).iCYsoldier wrote:Sorry to bring this thread up again, but how did you get it to work? What's the format of the cfg? ThanksF |Madness| U wrote:Edit: Got it working now, I did have to whitelist the dvars. Although the whitelisting tutorial on the official treyarch wiki doesn't work, typical- but I found a way to get it to work.
Inside that cfg mine looks like
Code: Select all
setmoddvar scr_zom_kickbots
setmoddvar scr_zom_spawnbots
setmoddvar scr_say
-
-
- CJ Worshipper
- Posts: 289
- Joined: December 5th, 2009, 7:12 am
- Location: Australia
Re: Scripting Healthpacks that drop on death
Ah got it now! Thanks alot Madness
Who is online
Users browsing this forum: No registered users and 1 guest