Q4Run is a modification for Quake4. Primarily it's based on trickjumping and combining tricks. The first idea behind this mod was to implement timers which makes it possible to finish a specific "run" map in a certain time and then improve it afterwards. Every run will be documented in a demo named after name of player and map and time. If you want you can share those demos with other players so they can watch your skill or can help you to improve it. Comparing to others' times you can try to beat them or be proud of yourself because of better records.

Post tutorial Report RSS Remove Weapons

This entity removes all weapons specified in its entity window.

Posted by on - Basic Mapping/Technical

We will start this tutorial with creating a trigger_multiple, placing a target_removeweapons entity in front of it and connect them with each other (select the trigger first, then the target and press ctrl+k):

removeweapon entity connected

As the title says, this small entity removes weapons when the player walks through the trigger. But before the entity effects something you have to type in several things into the entity window ("n"):

entity window\

You always have to create another key for each weapon (weapon0, weapon1, weapon2...) and then define its value with def_weaponx ("x" stands for 0-10). In the example above the player would lose a grenade launcher and the nailgun. The row of the weapons doesn't matter (it can also be def_weapon5 and then def_weapon3). Only be sure that you type in weapon0, weapon1, weapon2! For the weapon categories open the pak001.pk4, then go to the "def" directory and search for the player.def. Scroll down until you see "Player Entity Definition". Some lines downwards you'll find the weapon slots.

def_weapon0 blaster
def_weapon1 machinegun
def_weapon2 shotgun
def_weapon3 hyperblaster
def_weapon4 grenade launcher
def_weapon5 nailgun
def_weapon6 rocket launcher
def_weapon7 railgun
def_weapon8 lightninggun
def_weapon9 dark matter gun
def_weapon10 napalm gun
def_weapon11 portalgun

Post comment Comments
Guest
Guest - - 687,512 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: