Just like ET, but without any weapons. Even knife is gone.


(Loffy) #1

Hi!
Would it be possible to make a non-weapon mod? To run around in the game without the knife. I guess it would, but is there someone out there that has done it already?
// Loffy


(fretn) #2

in g_client.c don’t assign weapons to the players

rtcw has g_knifeonly cvar afaik, check that source


(Rain) #3

I overloaded the g_knifeonly cvar in RtCW so that g_knifeonly 2 took away everyone’s weapon (inspired by this Penny Arcade strip.) I later expanded it so that higher values were a bitmask for certain weapons to give everyone (e.g. g_knifeonly 64 made everyone spawn with a venom.)

In ET, you should just be able to check whether g_knifeonly is 2 before calling ‘AddWeaponToPlayer( client, WP_KNIFE, 1, 0, qtrue );’, and update the other g_knifeonly bits in g_client.c and g_misc.c so that they’ll work with values other than 1.


(nUllSkillZ) #4

@Loffy:
Just what type of gameplay do you have in mind?
May be some kind of adventure?


(Loffy) #5

Hi!

Thanks for the replies.

There are two reasons behind this. A) It would be nice if a non-weapon character could be used, if I was going to show a 3D world to a non-gaming, adult audience. Let’s say I made a 3D representation of my hometown (or something similar), it would be nice just to be able to “walk around” in it without a knife in my hand. I don’t care, but non-games do. B) It would be cool to make a single player adventure, like Mario for Nintendo 64 or similar. Kind of “solve the riddle and move on”.

// Loffy


(Sick Boy) #6

If it’s just for showing, cg_drawgun 0 ?


(Spark) #7

Or even cg_draw2d 0, then you also don’t get that soldier head, etc. :slight_smile:


(pgh) #8

And all we need is yoshi and some green pipes \o/


(Loffy) #9

@pgh Lol! Yes. Exactly!
Thanks guys!
// L.


(pgh) #10

/me jumps of Goomba Loffys head and bounces to the castle on a timer with 6. que Fireworks