CoDJumper Mod Update: Requires Testing.

Chat area specifically for CoDJumper

Moderator: Core Staff

Post Reply
User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

CoDJumper Mod Update: Requires Testing.

Post by Drofder2004 » March 25th, 2008, 7:41 pm

Download Link: Here

Install: Unzip files and place "codjumper" folder in Mod directory.

Added:
- Vote Kick Removal
- Vote Delay

Code: Select all

--------------
Dvars
--------------
- cj_welcome
This dvar is used to apply messages to a player once they have spawned. 
The cvar can be used to create a multiline message with a different wait time between each message.
To create such a message, use the following syntax.

Syntax: "<wait>::<message>::<wait>::<message>::<wait>::<message>" (etc)
Example: set cj_welcome "1::Hello::0::Welcome to the server::3::Enjoy your stay"

- cj_showdamage
This dvar when enabled will display the ammount of damage taken by the player.

Syntax: 0 (On) / 1 (Off)
Example: set cj_showdamage 1

- cj_allowdamage
This Dvar when enabled, can either allow all damage, or allow only personal damage.

Syntax: 0 (No Damage) / 1 (All Damage) / 2 (Personal Damage)
Example: set cj_allowdamage 2

- cj_player_msg
Use this dvar to send a message to a player (or players). This dvar works on substrings and 2 sizes, bold (b) and small (s).

Syntax 1: "name::message"
Syntax 2: "size::name::message"
Example 1: cj_player_msg "Drofder::Hello" (Using syntax 1)
Example 2: cj_player_msg "s::Drofder::Hello" (Using syntax 2)
Example 3: cj_player_msg "b::Dro::Hello" (Using syntax 2 with partial name)

- cj_server_msg
Use this to send a message to everyone on the server. Use 's' or 'b' to change size of message.

Syntax: "size::message"
Example: cj_server_msg "s::Welcome"

- cj_msg_rotate_#
This Dvar is used to create a scrolling server message. Change the # to the correct number. The numbers must start at 1 and not skip any numbers, maximum limit is 100.

Syntax: <text>
Example: cj_msg_rotate_1 "First Server Message"
Example: cj_msg_rotate_2 "Second Server MEssage"

- cj_msg_delay
This dvar controls the time (in seconds) for the server messages to rotate. Default and minimum value is 5.

Syntax: <number>
Example: cj_msg_delay 60

- cj_votedelay
This Dvar will disable voting for the amount of time (in seconds) specified.
(Setting this Dvar to anything but 0 will automatical change "g_allowvote")

Syntax: 0 (off) / <seconds> (on)
Example: cj_votedelay 600
edited: KS
Image
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

User avatar
aicaramba
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 2720
Joined: May 31st, 2005, 3:45 pm
Location: zeeland (N-Br), Holland

Re: CoDJumper Mod Update: Requires Testing.

Post by aicaramba » March 25th, 2008, 7:51 pm

putting it on one of the cj server for testing.
P.S.V. Kampioen!

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: CoDJumper Mod Update: Requires Testing.

Post by Drofder2004 » March 25th, 2008, 9:47 pm

Hmm, I am going to have to rethink this...

If a player is able to vote through the console, then we have major issues, I cannot stop a client from using the callvote command.

As for the delay, it worked perfect for me...

/g_allowvote 1
/cj_votedelay 300 (5 minutes)

(Place both in the config, and restart)
Image
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

User avatar
[SoE]_Zaitsev
Core Staff
Core Staff
Posts: 14220
Joined: October 21st, 2004, 7:17 pm
Location: Holland
Contact:

Re: CoDJumper Mod Update: Requires Testing.

Post by [SoE]_Zaitsev » March 26th, 2008, 5:29 pm

Nades are originally for nade throws. But yeh, should do that in your private server. Or... Make a seperate 999 nades mod for that like it's been done before.

Drofder should be able to do that without issues :)
matt101harris wrote:big cock was the first thing that came to my head lol

gok199
CJ Wannabe
CJ Wannabe
Posts: 8
Joined: January 27th, 2008, 12:55 am

Re: CoDJumper Mod Update: Requires Testing.

Post by gok199 » March 26th, 2008, 8:35 pm

im glad.... that its being worked on.... and what KS said... is good...


dont spose u can make a tutorial on how to make dvars or something though..? im a lil confused....

cause im soo used to java and its API's... thats where i found all the coding for the methods i would create or use.....

im trying to see how exactly u call events and methods... etc.... just a lil confusing probly because i dont code much anymore :oops:

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: CoDJumper Mod Update: Requires Testing.

Post by Drofder2004 » March 27th, 2008, 12:34 am

A dvar is created simply using the"setDvar" command.

If you set a dvar that doesnt exist, you make it...

So setDvar("newdvarname", <value>) will create a new dvar.

Read through the raw files from the modtools, look at the smaller gsc's first.
Image
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

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests