Here is his actor cog:
Now, I want to change it from the killer it is to something better: a companion who stays with you (not like that crappy max cog that the above is an edited version of) and spawns next to you on any level, without a special thing in the level (my guess is a CTAP(ghost, GetThingPos(player)) in the startup code. Also, it needs to have some way to avoid getting stuck, like sending a text message to the player when it loses sight or gets a certain distance away. Plus, the major thing is it has to shoot enemies...
------------------
- Laserjolt (with a smaller sig!)
Folder: LucasArts
Size: 3.29 GB (3,540,445,700 bytes)
Size On Disk: 2.08 GB (2,239,862,836 bytes)
Contains: 21,338 Files, 938 Folders
[This message has been edited by Laserjolt (edited July 15, 2003).]
Code:
# Jedi Knight Cog Script
#
# ACTOR_KB.COG
#
# ACTOR Script - Standard Killbot
#
# [CR]
#
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
#
# ========================================================================================
symbols
message killed
message skill
message damaged
message sighted
flex damageAmount local
flex damageType local
flex totalDamage local
flex activator local
flex activated local
end
# ========================================================================================
code
sighted:
activator=(getsourceref);
activated=(getsenderref);
AISetFireTarget(activated,activator);
AISetMoveThing(activated,activator);
AISetLookPos(activated, GetThingPos(activator));
AISetMode(activated, 0x202);
AIClearMode(activated, 0x1004);
return;
# ........................................................................................
killed:
return;
# ........................................................................................
skill:
ReturnEx(-1);
return;
# ........................................................................................
damaged:
damageAmount = GetParam(0);
damageType = GetParam(1);
totalDamage = damageAmount;
if (BitTest(damageType, 0x01))
{
totalDamage = damageamount * 0.5;
}
if (BitTest(damageType, 0x02))
{
totalDamage = damageAmount * 0.5;
}
ReturnEx(totalDamage);
return;
end
Now, I want to change it from the killer it is to something better: a companion who stays with you (not like that crappy max cog that the above is an edited version of) and spawns next to you on any level, without a special thing in the level (my guess is a CTAP(ghost, GetThingPos(player)) in the startup code. Also, it needs to have some way to avoid getting stuck, like sending a text message to the player when it loses sight or gets a certain distance away. Plus, the major thing is it has to shoot enemies...
------------------
- Laserjolt (with a smaller sig!)
Folder: LucasArts
Size: 3.29 GB (3,540,445,700 bytes)
Size On Disk: 2.08 GB (2,239,862,836 bytes)
Contains: 21,338 Files, 938 Folders
[This message has been edited by Laserjolt (edited July 15, 2003).]
Folder: LucasArts
Size: 7.41 GB (7,957,329,759 bytes)
Size on Disk: 5.16 GB (5,544,473,484 bytes)
Contains: 28,807 Files, 1187 Folders
Last Updated: 3/29/05
Size: 7.41 GB (7,957,329,759 bytes)
Size on Disk: 5.16 GB (5,544,473,484 bytes)
Contains: 28,807 Files, 1187 Folders
Last Updated: 3/29/05