egosumquesum Posted April 13, 2010 Share Posted April 13, 2010 Well, ive tried a few way's already but since im no coder im not getting the results i want. What im looking for is some way to make laying out traps instant or with a very short trapping time.Secondary, but just as nice would be to make trapping work at range, just like a few of the aoe spells without moving the character to the spot of the trap. Reason being that while traps are rather fun, it's really a damnable hassle to use in combat. Thertiary would be any smooth way to make all traps stonger or teammate friendly. Is this possible without changing each and every trap seperatly? Cheers for working mod, or even tips and ideas on how to make this work. Link to comment Share on other sites More sharing options...
hdhd Posted April 13, 2010 Share Posted April 13, 2010 Maybe look in the sys_traps_h and reduce the fDelay. I don't know if this will work you might have to look somewhere else (traps.xls?) /**----------------------------------------------------------------------------- * @brief Arms a trap after fDelay seconds. *-----------------------------------------------------------------------------*/ void Trap_ArmTrap(object oTrap, object oOwner, float fDelay = 5.0f) { Log_Trace(LOG_CHANNEL_SYSTEMS_TRAPS, "sys_traps_h.Trap_ArmTrap", "Arming trap " +ToString(oTrap) + " in " + ToString(fDelay) + " seconds, Owner: " + ToString(oOwner)); event evArm = Event(EVENT_TYPE_TRAP_ARM); evArm = SetEventObject(evArm, 0, oOwner); SetLocalObject(oTrap, PLC_TRAP_OWNER, oOwner); DelayEvent(fDelay, oTrap, evArm); // Unlock achievement for setting traps ACH_TrapAchievement(oOwner); } Link to comment Share on other sites More sharing options...
Recommended Posts