ondrahosek Posted September 29, 2002 Share Posted September 29, 2002 Could somebody send me UNCOMPILED Icarus code with the setting of force powers of an NPC and using the force or the weapon? I will need the code for primary AND secondary firing mode. Thanks, Link to comment Share on other sites More sharing options...
Emon Posted September 29, 2002 Share Posted September 29, 2002 Uh, what? Do you mean weapon and force source code? Because that's not available to anyone but Raven's programmers and never will be. Link to comment Share on other sites More sharing options...
Kyle098 Posted September 29, 2002 Share Posted September 29, 2002 wait dont we have the weapon and force source code?in mp source code Link to comment Share on other sites More sharing options...
ondrahosek Posted September 30, 2002 Author Share Posted September 30, 2002 Nope. Don't want that. I want the Icarus code sample for getting an NPC to use the Force. I have already found out how to fire something. I will now only need the Force using. Let's say: affect ( "the_stormtrooper_with_the_big_nose" ) { set ( SET_FORCE_PUSH_LEVEL, 3 ); set ( SET_USE_FORCE_PUSH, "true" ); wait ( 1000 ); set ( SET_USE_FORCE_PUSH, "false" ); } I know the line with the Force Push usage is invented by me, but I am looking for the "real" equivalent. Understand it now? Link to comment Share on other sites More sharing options...
Remyz Posted October 2, 2002 Share Posted October 2, 2002 So how do tell an npc to shoot in an icarus script Ondrahosek? And what do you call the compiled .ibi file anyway, if the script says what an npc will do? (much like a npc class I think) Thanks in advance. Link to comment Share on other sites More sharing options...
ondrahosek Posted October 2, 2002 Author Share Posted October 2, 2002 To let an NPC shoot, I think you use this: affect ("themoronish_stormtrooper") { set ( /*@SET_TYPES*/ "SET_FIRE_WEAPON", "TRUE" ); wait ( 4000 ); set ( /*@SET_TYPES*/ "SET_FIRE_WEAPON", "FALSE" ); } Link to comment Share on other sites More sharing options...
Remyz Posted October 3, 2002 Share Posted October 3, 2002 Thanks. Any idea of how to make a npc use other types of guns besides the blaster? I've tried the "SET_WEAPON" and set that to the type of weapon eg. "WP_REPEATER", but that doesn't seem to work. Any solutions as how to get a npc to use specific force powers at a given time (considering that that was the initial thread question) ? Link to comment Share on other sites More sharing options...
Kyle098 Posted October 3, 2002 Share Posted October 3, 2002 well you probably put Set_force(i am not sure though)and the force names are: FP_HEAL FP_LEVITATION(note:jump) FP_SPEED FP_PUSH FP_PULL FP_TELEPATHY(note:mind trick) FP_GRIP FP_LIGHTNING FP_RAGE FP_PROTECT FP_ABSORB FP_TEAM_HEAL FP_TEAM_FORCE FP_DRAIN FP_SEE FP_SABERATTACK FP_SABERDEFEND FP_SABERTHROW i hope this helps. Link to comment Share on other sites More sharing options...
Remyz Posted October 3, 2002 Share Posted October 3, 2002 There is a "SET_FORCE_(FORCE TYPE)_LEVEL", but it doesn't look like there's a USE_FORCE command (like Ondrahosek said). Are you sure Kyle, that the FP_*prefix would do the trick? Link to comment Share on other sites More sharing options...
ondrahosek Posted October 3, 2002 Author Share Posted October 3, 2002 I know there is no command like that. I was just looking for the "real" equivalent. Link to comment Share on other sites More sharing options...
Kyle098 Posted October 3, 2002 Share Posted October 3, 2002 hmmm see i am a coder for jk2 and i know in the code run a forcxe you do: WP_ForcePowerStart( ent, FP_TELEPATHY, 0 ); so that might be what you are looking for. also the ent might be self,and the 0 is the force amount it takes.and with the force level it does it to the force level the person has,or if you want to automatyically set the force level then you type: ent->client->ps.fd.forcePowerLevel[FP_TELEPATHY] = FORCE_LEVEL_3; and yes i am sure that there is a fp prefex in front of all the force fowers,juyst like theres a wp prefix infront of the weapons. also this might be a dumb questionb but what is icarus???????????is that like a bot thing? Link to comment Share on other sites More sharing options...
ondrahosek Posted October 4, 2002 Author Share Posted October 4, 2002 Nope, Icarus is for scripting in levels and maps. It lets you do cinematics (cutscenes), show the credits, play sounds, set the behavior of the player, kill the player,... I would like to use a force power in a cinematic. Like Kyle using it to push the stairs in the Yavin Temple to fall into a hole that leads him to Desann. I couldn't find the code for this cutscene, so I think I might ask someone on the forum or maybe Raven... I am happy I could help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.