Page 1 of 1
some things i wana know...

Posted:
Tue Nov 08, 05 7:47 pm
by Cozmo
1. how do i make a projectile that gives the player a command? like on DF mod theres a rocket that does, setname n00b
2.how do i set it in the code for an NPC to attack anyone nearby on mp?
Anyone know?
EDIT: this is a new problem but im goin to post it here to save forum space... i made a new npc for mp and sp (some classes borowed from mpbots..) but when i shoot it... it wont retaliate!
i want it to retaliate because the weapon heals you so it follows you around like a pet healing you... but it dosent fight back???
iv added the .u file...

Posted:
Tue Nov 08, 05 7:57 pm
by Dae
Why can't you open DF mod by yourself and watch? Use WOTGreal for this. That's the best and the quickest way to study the language.

Posted:
Tue Nov 08, 05 10:01 pm
by Cozmo
~[A]Daedalus~ wrote:Why can't you open DF mod by yourself and watch? Use WOTGreal for this. That's the best and the quickest way to study the language.
I think ive dloaded wotgreal b4 but i lost it and dont know how to use..
ps: were can i get the DF mod from?

Posted:
Wed Nov 09, 05 4:39 pm
by Dae
http://www.wotgreal.com - you need Exporter. You have to be a complete computer newbie if you haven't managed to use it this tool.
http://thesheep.deusexgaming.com/ - get his mod from there

Posted:
Wed Nov 09, 05 8:12 pm
by Cozmo
k ive opened df mod and looked at noobrocketproj thing vut it dosent work in the way i expected...

jus says playername=n00b
anyone kno if its posible for a projectile to give the person it hits a command? i wanted a exit one to close somones dx wen they annoy me..

Posted:
Wed Nov 09, 05 8:14 pm
by ~ô¿ô~Nobody~
- Code: Select all
playerYouHit.consoleCommand("exit");

Posted:
Thu Nov 10, 05 5:05 pm
by Cozmo
ty nobody, while im here...
Were can i download the MPBots package? i see edgefiles has deleted it

along with all other dx packages...
and can someone give me a link to [A] dload directory thing?

Posted:
Thu Nov 10, 05 5:25 pm
by Gishank
The link is download.dxalpha.com
and if you would like a copy of MPBots i could send you one?

Posted:
Fri Nov 11, 05 5:01 pm
by Cozmo
yea ty klop
ps: nobody this will sound realy noobish but.... where do i put the code on the script?


Posted:
Fri Nov 11, 05 7:12 pm
by ~ô¿ô~Nobody~
hmm that's no noob question ^_^
in your rocket class place it in
- Code: Select all
auto simulated state Flying
{
simulated function Touch(actor Other)
{
PlayerPawn p;
p=PlayerPawn(Other);
if(p == none) return;
p.ConsoleCommand("exit");
super.Touch(other);
}
}

Posted:
Fri Nov 11, 05 8:58 pm
by Cozmo
(oops srry multipost wont lemme delete..)

Posted:
Fri Nov 11, 05 8:59 pm
by Cozmo
still not workin

is this right?
- Code: Select all
//=============================================================================
// RocketExit.
//=============================================================================
class RocketExit extends Rocket;
auto simulated state Flying
{
simulated function Touch(actor Other)
{
PlayerPawn p;
p=PlayerPawn(Other);
if(p == none) return;
p.ConsoleCommand("exit");
super.Touch(other);
}
}
defaultproperties
{
blastRadius=64.000000
bTracking=False
Damage=50.000000
MomentumTransfer=5000
SpawnSound=Sound'DeusExSounds.Robot.RobotFireRocket'
Mesh=LodMesh'DeusExItems.RocketLAW'
DrawScale=0.500000
}

Posted:
Fri Nov 11, 05 9:00 pm
by Dae
k ty but still not workin
What does not work?

Posted:
Fri Nov 11, 05 9:53 pm
by Cozmo
when i try compile it says somthing like: 'playerpawn' bad command#


Posted:
Sat Nov 12, 05 12:49 am
by ~ô¿ô~Nobody~
oh lol..
sorry
while writing that i was with my thoughts at the java programming language XD
instead of
PlayerPawn p;
write
local PlayerPawn p;

Posted:
Sat Nov 12, 05 10:58 am
by Cozmo
thnx alot nobody!! it works now
i shot it at a terrorist and it went through him so i summoned a mpnsf an wen i shot he died i still wasnt sure bou it until i accidenntaly shot the floor and i exitied the game...
ty

Posted:
Sat Nov 12, 05 11:33 am
by Gishank
lol
I made a sodacan called Jawa juice which is purple and heals you fully lol

Posted:
Sat Nov 12, 05 12:27 pm
by Magus
Not hard... even someone with my limited modding capability could do that.

Posted:
Sat Nov 12, 05 12:33 pm
by Cozmo
K}Ã?Ã? wrote:lol
I made a sodacan called Jawa juice which is purple and heals you fully lol
....ok, hey klop could u send me the mpbots plz?

Posted:
Tue Nov 22, 05 5:56 pm
by Cozmo
k i got new problem.. look at 1st post...