1 (edited by Ich 2013-02-05 22:11:17)

Topic: [MOD] CMod v1.1

Hi guys
I want to present you my mod called 'custom mod'. The name says much but here an explanation:


What is custom mod?
You got lots of variables which you can set in your cfg or rcon with simple commands. They include customizing health, armor, hammer, gun, shotgun, grenade, rifle and explosions.


What else does it provide?
You can enable instagib mode with sv_mode 1 reset everything with sv_mode -1 or make it customizable with sv_mode 0. Ofc you are free to use tuning however you want.
You can easy switch around the gametypes with sv_gametype dm, tdm or ctf (not with C|DM, C|TDM or C|CTF) and the standard setted options have no difference to vanilla.


A list of commands?
No problem smile

command, standard value, lowest value, highest value, "explanation"

sv_mode, 0, -1, 1, "-1 = Reset everything, 0 = Customize this mod however you want, 1 = Instagib"

sv_health_max, 10, 1, 50, "Amount of health you can have max"
sv_health_start, 10, 1, 50, "Amount of health you spawn with"
sv_health_spawn, 15, 0, 600, "Time it takes to respawn in seconds"
sv_health_regen, 0, 0, 600, "Regenerating health over time in ms"

sv_armor_max, 10, 0, 50, "Amount of armor you can have max"
sv_armor_start, 0, 0, 50, "Amount of armor you spawn with"
sv_armor_spawn, 15, 0, 600, "Time it takes to respawn in seconds"
sv_armor_regen, 0, 0, 600, "Activate Armor regeneration (Based on health regeneration options)"

sv_hammer_start, 1, 0, 1, "If you spawn with or without this weapon"
sv_hammer_damage, 3, 0, 100, "Damage this weapon takes"
sv_hammer_auto, 0, 0, 1, "Fullautomatical weapon"
sv_hammer_reload, 125, 1, 10000, "Time it takes to hammer again in ms"

sv_gun_damage, 1, 0, 100, "Damage this weapon takes"
sv_gun_explode, 0, 0, 1, "Makes the projectile explode on death"
sv_gun_bounce, 0, 0, 25, "Amount of bounces this weapon does"
sv_gun_bounce_explode, 0, 0, 1, "Create explosions on bouncing"
sv_gun_selfdamage, 1, 0, 100, "Selfdamage on explosion"
sv_gun_start, 1, 0, 1, "If you spawn with or without this weapon"
sv_gun_ammo, 10, -1, 50, "Amount of ammo this weapon can have maximal"
sv_gun_regen, 500, 0, 10000, "Ammo regeneration in ms"
sv_gun_auto, 0, 0, 1, "Fullautomatical weapon"
sv_gun_projectiles, 1, 1, 76, "Amount of projectiles this weapons shoot"
sv_gun_reload, 125, 1, 10000, "Time it takes to shoot again in ms"

sv_shotgun_damage, 1, 0, 100, "Damage this weapon takes"
sv_shotgun_explode, 0, 0, 1, "Makes the projectile explode on death"
sv_shotgun_bounce, 0, 0, 25, "Amount of bounces this weapon does"
sv_shotgun_bounce_explode, 0, 0, 1, "Create explosions on bouncing"
sv_shotgun_selfdamage, 1, 0, 1, "Selfdamage on explosion"
sv_shotgun_spawn, 15, 0, 600, "Time it takes to respawn in seconds"
sv_shotgun_start, 0, 0, 1, "If you spawn with or without this weapon"
sv_shotgun_ammo, 10, -1, 50, "Amount of ammo this weapon can have maximal"
sv_shotgun_regen, 0, 0, 10000, "Ammo regeneration in ms"
sv_shotgun_projectiles, 5, 1, 76, "Amount of projectiles this weapons shoot"
sv_shotgun_reload, 500, 1, 10000, "Time it takes to shoot again in ms"

sv_grenade_bounce, 0, 0, 25, "Amount of bounces this weapon does"
sv_grenade_bounce_explode, 1, 0, 1, "Create explosions on bouncing"
sv_grenade_damage, 6, 0, 100, "Damage this weapon takes"
sv_grenade_selfdamage, 3, 0, 100, "Selfdamage on explosion"
sv_grenade_spawn, 15, 0, 600, "Time it takes to respawn in seconds"
sv_grenade_start, 0, 0, 1, "If you spawn with or without this weapon"
sv_grenade_ammo, 10, -1, 50, "Amount of ammo this weapon can have maximal"
sv_grenade_regen, 0, 0, 10000, "Ammo regeneration in ms"
sv_grenade_projectiles, 1, 1, 76, "Amount of projectiles this weapons shoot"
sv_grenade_reload, 500, 1, 10000, "Time it takes to shoot again in ms"

sv_laser_explode, 0, 0, 1, "Create explosions on bouncing"
sv_laser_selfdamage, 1, 0, 20, "Selfdamage on explosion"
sv_laser_spawn, 15, 0, 600, "Time it takes to respawn in seconds"
sv_laser_start, 0, 0, 1, "If you spawn with or without this weapon"
sv_laser_ammo, 10, -1, 50, "Amount of ammo this weapon can have maximal"
sv_laser_regen, 0, 0, 10000, "Ammo regeneration in ms"
sv_laser_projectiles, 1, 1, 76, "Amount of projectiles this weapons shoot"
sv_laser_reload, 800, 1, 10000, "Time it takes to shoot again in ms"

sv_ninja_switch, 0, 0, 1, "Gives the possibility to switch your weapon while having ninja"
sv_ninja_duration, 15, -1, 10000, "Time you got the Weapon"
sv_ninja_start, 0, 0, 1, "If you spawn with or without this weapon"
sv_ninja_auto, 0, 0, 1, "Fullautomatical weapon"
sv_ninja_reload, 800, 1, 10000, "Time it takes to shoot again in ms"
sv_ninja_damage, 9, 0, 100, "Damage this weapon takes"
sv_ninja_spawn, 90, 0, 600, "Time it takes to respawn in seconds"

sv_explosive_power, 6, 0, 50, "Power of an explosion. Important for rocket jumps for example"
sv_explosive_selfdamage_auto, 1, 0, 1, "Half of damage goes to explosion damage if activated"

Download v1.1
Download it for Windows
Download the Source
Download a list of variables
Please report bugs. thanks smile

Edit (06.02.2013):
Added more commands, customizing for ninja and fixed some bugs.
Download links are updated smile

2

Re: [MOD] CMod v1.1

I really like the idea! Now we can switch gametypes without closing and opening a new server!
The problem is that people are going to see C|DM and they are going to think "Hum... A mod. of DM... Next Server!

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

3

Re: [MOD] CMod v1.1

Pretty nice idea !

Teeworlds!!!!

4

Re: [MOD] CMod v1.1

HeroiAmarelo wrote:

I really like the idea! Now we can switch gametypes without closing and opening a new server!
The problem is that people are going to see C|DM and they are going to think "Hum... A mod. of DM... Next Server!

The problem is it is a modification and mods aren't allowed to wear DM, TDM or CTF tag. And that's good, else there would be lots of mod with standard tags which aren't vanilla and you couldn't see whats what.

5 (edited by Broken 2012-11-17 01:37:52)

Re: [MOD] CMod v1.1

This looks great, to be able to tweak more tuning.

Couple of requests: be able to change the hit area of the hammer (make it larger), and an option to automatically switch to pistol on 0 ammo.

6 (edited by Ich 2013-02-05 22:16:36)

Re: [MOD] CMod v1.1

Broken wrote:

This looks great, to be able to tweak more tuning.

Couple of requests: be able to change the hit area of the hammer (make it larger), and an option to automatically switch to pistol on 0 ammo.

I will add much more options whenever i do a rebuild for the next version. Maybe earlier smile

Edit (06.02.2013):
Added more commands, customizing for ninja and fixed some bugs.
Download links are updated smile

7

Re: [MOD] CMod v1.1

An error appears when i try to run the server... (windows)

8

Re: [MOD] CMod v1.1

Pako wrote:

An error appears when i try to run the server... (windows)

Could you please specify the error, your environment, etc. Also, what have you tried to get around the error?

9

Re: [MOD] CMod v1.1

I have re-compiled it and now it works. Great mod!

10

Re: [MOD] CMod v1.1

Hello, here's a bug or somthing. I set the sv_laser_ammo -1 & sv_laser_start 1.
if the server running a long time like the timer got 80:00+, the laser can't shoot anymore (it has no ammo.)
If you update and fix this, could you please tell me where did you change in the source? thx.

Greet from China!
Teeworlds Chinese Website