News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Activating Cheat codes through scripts

Started by VGames, November 06, 2015, 09:04:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VGames

Ok how the heck do u activate cheat codes through the scripts? The setcvar event does not work with these console commands such as "give ammo". Is this possible at all?

I need to give the player full ammo via scripts without spawning any kind of items. I want the player to receive the ammo whether or not they need it. This way an item model is not left behind to be picked up when the player needs ammo. Is there another command that can be used in the scripts that will give ammo to the player without the need to spawn an actual item?
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar

They should work.

You could also make a pickup item with no model that is spawned at the players location.  Have it removed after a few seconds, then if the player didn't need it they can't pick it up later. 

VGames

How do u make the item disappear after a few seconds?
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar


VGames

Oh ok. Duh

I thought u meant some kind of variable in the items definition.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500