randomising code Created 13 years ago2011-11-02 18:56:44 UTC by salmon salmon

Created 13 years ago2011-11-02 18:56:44 UTC by salmon salmon

Posted 13 years ago2011-11-02 18:56:44 UTC Post #300440
I come up with a thing I would try to put into a map for tfc. But I don't even know if it's possible to do (newbie mapper ).

I want a secret area with some sort of a door or entrance with a 4-digit password. These 4 digits would be found throughout the map in messages (message to ap). So I want these digits to be random that every time the map loads it generates a new code.

And if it would require a special plugin then forget it.
Posted 13 years ago2011-11-02 20:04:09 UTC Post #300443
Striker StrikerI forgot to check the oil pressure
Posted 13 years ago2011-11-02 21:02:05 UTC Post #300444
Or this
Daubster DaubsterVault Dweller
Posted 13 years ago2011-11-03 02:25:16 UTC Post #300451
I think he actually wants the password to be different (i.e randomly generated by code at run time) on every playthrough.

I'm almost sure that it can't be done without custom code.
Posted 13 years ago2011-11-03 09:34:42 UTC Post #300453
Couldn't you do the randomness by a large scale version of our latest tutorial? It would take a whole lot of entities, but I think it might be possible.
Notewell NotewellGIASFELFEBREHBER
Posted 13 years ago2011-11-03 16:43:39 UTC Post #300458
I wish Half-Life had support for a scripting language that allows you to add functionality to your entity set-ups like Source. Source has Lua.
You must be logged in to post a response.