Implementing augs for npcs, need help

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Implementing augs for npcs, need help

Postby RedDynasty » Sat May 19, 12 6:13 pm

So i decided to check around the TNMPawn.uc, and the tnmpawnaugmanager to give a try at putting augs in the normal dx.
And after alot of trial and error ive stumbled into a command\expression called "PlayerDetected".
Normaly i wouldnt give much attention to this since the tnmpawn is expanding the ScriptedPawn.
But later on i stumbled upon this:

Deleted code here, go away

Since this is augmentation related i fear that if i delete it, it wont let the augs to initiate.
What should i do?
Last edited by RedDynasty on Sat Jun 02, 12 5:15 pm, edited 1 time in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby RedDynasty » Sun May 20, 12 5:11 pm

Everyone nvm this.
Ill just forget all of this since adding augs is hard as hell.
And with my low knowlage on coding its pretty much impossible, unless i get alot of help.
Last edited by RedDynasty on Sun May 20, 12 6:39 pm, edited 1 time in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby Allan » Sun May 20, 12 6:43 pm

RedDynasty wrote:Everyone nvm this.
Ill just forget all of this since adding augs is hard as hell.
And with my low knowlage on coding its pretty much impossible, unless i get alot of help.


I haven't poked around in the TNM code, but I've not noticed any reference to PlayerDetected at any point along the ScriptedPawn parent/child classes. I'm guessing it's a TNM specific function.

Adding augs is simple-ish, or a pain in the backside - Depends entirely on what augs specifically you want to add to a pawn.
User avatar
Allan
Alpha
 
Posts: 4545
Joined: Wed Dec 21, 05 1:41 pm
Location: Northamptonshire, England.

Postby RedDynasty » Sun May 20, 12 6:53 pm

i want all of them, like in the nameless mod.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby RedDynasty » Thu May 24, 12 8:42 pm

Deleted code here
Last edited by RedDynasty on Sat Jun 02, 12 5:14 pm, edited 2 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby atrey65789 » Fri May 25, 12 3:11 am

I think that you can get rid of the function. there's really no need for it.
-A
atrey65789
Regular
 
Posts: 400
Joined: Thu Dec 22, 11 3:02 pm

Postby atrey65789 » Fri May 25, 12 3:19 am

The class is basicly telling itsself to loop its own function? I dont get it..
-A
atrey65789
Regular
 
Posts: 400
Joined: Thu Dec 22, 11 3:02 pm

Postby Poor » Fri May 25, 12 2:23 pm

It's informing the mission that you have been detected.
Poor
Poster
 
Posts: 190
Joined: Tue Jan 04, 11 7:42 pm

Postby RedDynasty » Fri May 25, 12 2:47 pm

wait so that means i dont need the tnmmissionscript because i can just change from tnmmissionscript to missionscript right? and since i want to this for mp, there is no need for that function
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby atrey65789 » Fri May 25, 12 4:19 pm

Yes, Exactly that... sorta lol

But yeah you won't need it.
-A
atrey65789
Regular
 
Posts: 400
Joined: Thu Dec 22, 11 3:02 pm

Postby RedDynasty » Sun May 27, 12 1:21 pm

Everyone, its done.
I tested yesterday and it worked, but it has some major bugs so im going to paste the report i sent atrey:
"-Npcs subclassed into the TNMPawn will have DT_Sprite by default and an eagle( icon of the actor class) stuck to them
-I dont know if the protection augs( enviro, ballistic, emp, energy) reduce the damage( this is because the effects are not showing up when u shoot them with the corresponding wep)
-EMP nades dont take the aug energy like in tnm( but i think thats a seperate emp nade class)
Good parts:
-Npcs with targeting aug have increased accuracy
-Npcs with speed aug run fast( but not as fast as in tnm, not sure)
-Npcs turn off augs when fleeing( EXCEPT cloak)"
Atrey suggested i should include the PlayerDetected() function but for that i need help.
Although its not a big deal since the augs are allways on, in cagematch, it will be a challenge.
EDIT: 2 things i gotta add:
1-I think the protection augs work. This is because i shot a npc (with enviromental protection ) with a poison dart and he only got hurt by the dart, not by the after poison effects.
2-I just reminded that treskton( yes its spelled that way, im not refering to Trestkon), the evil clone of Trestkon, has a script that copies what ever augs the player class has( as long as they are TNM augs).
Adding him to cagematch has an advantage and a disadvantage.
The advantage is that we can experiment with the new aug that poor made in( not going to mention it due to him not wanting, we have to respect him),and if its successfull, we have a new way of testing custom augs.
The disadvantage is that it will require some replacement in the code and probably some bugs which can cause him to be overpowered.
Last edited by RedDynasty on Sat Jun 02, 12 4:42 pm, edited 4 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby atrey65789 » Sun May 27, 12 2:04 pm

We'll get it finished. I know that we are very very close.
-A
atrey65789
Regular
 
Posts: 400
Joined: Thu Dec 22, 11 3:02 pm

Postby RedDynasty » Fri Jun 01, 12 8:29 pm

Done testing and good stuff came up:
-Npcs with run silent aug have almost unhearable footsteps.
-Npcs with regen use it when their health is at any value below 100%( this is great for a teamwork challenge in cagematch)
-Npcs that flee but have regen will get back into fight when they use it!
Edit- results from another test:
-ADS( Agressive defense system) aug works on npcs( they only detonate rockets, just like in tnm)
-Still i cant seem to get the effects for the augs, but enviro protect seems to be working ( with no effects though)
-Npcs can still be on fire even if they have energy sheild( not sure if this happened in tnm but im pretty sure it didnt)
Last edited by RedDynasty on Fri Jun 01, 12 11:47 pm, edited 4 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby atrey65789 » Fri Jun 01, 12 9:25 pm

Thats great! Glad to hear its nearing completion. Plus why did you bail on RC? lol
-A
atrey65789
Regular
 
Posts: 400
Joined: Thu Dec 22, 11 3:02 pm

Postby RedDynasty » Sat Jun 02, 12 5:03 pm

New test results:
-Npcs with vision aug can see cloaked players( even when the cloak is not the tnm one)
-The cloak in npcs is now fixed, it has to use tnmaugcloakcombat and not tnmaugcloak
-Ballistic sheild has been tested to be working
Now i need to fix the energy sheild and the eagle stuck to the npc( this is not much of a deal)
Edit: i fixed the DT_Sprite, im so dumb it was right in the defaultproperties -_-
Last edited by RedDynasty on Sat Jun 02, 12 9:42 pm, edited 1 time in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby Alex » Sat Jun 02, 12 5:08 pm

Not to ruin anything, but did you ask the creators of TheNamelessMod if you could reuse their code and publish it in a multiplayer enviro?
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby RedDynasty » Sat Jun 02, 12 5:12 pm

Alex wrote:Not to ruin anything, but did you ask the creators of TheNamelessMod if you could reuse their code and publish it in a multiplayer enviro?

i dont have the contact of them, if u can that would be great.
but still i do not own any of the original code, all code is belong to the codders of tnm( That Guy and Jonas i think), u all know that as much as i do
I dont intend to steal anything from them, im just a simple fan who wants more enjoyment in DX
But allright since im going to get billions of complains going: bla bla stop stealing u fag bla bla u didnt make it bla bla, im going to erase the codes posted here
Will this make everyone happy now -_-
Last edited by RedDynasty on Sat Jun 02, 12 5:15 pm, edited 2 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby Alex » Sat Jun 02, 12 5:16 pm

You can contact them yourself:
http://thenamelessmod.com/contact/

I doubt they will have any objections, but I think asking is the 'nice' thing to do.

EDIT: No need to remove codes, just shoot them an e-mail :)
Last edited by Alex on Sat Jun 02, 12 5:16 pm, edited 1 time in total.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby RedDynasty » Sat Jun 02, 12 5:17 pm

Thank u
Last edited by RedDynasty on Sat Jun 02, 12 5:20 pm, edited 2 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby James » Sat Jun 02, 12 5:20 pm

RedDynasty wrote:the tnm guys are aware of this, i dont think they need a warning


Are they aware of it or not?
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home

Postby RedDynasty » Sat Jun 02, 12 5:22 pm

im guessing, since its their mod they should be i think :S
ok fine im sorry i said that but sometimes people just like to ruin ones enjoyment by doing that kinda of thing
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby Alex » Sat Jun 02, 12 5:23 pm

Well, I'm not saying you should quit/stop doing this project, all I said is that you should just send them an e-mail notifying them you're reusing their code and ask if they got any problems with it.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby James » Sat Jun 02, 12 5:23 pm

im guessing, since its their mod they should be i think :S
ok fine im sorry i said that but sometimes people just like to ruin ones enjoyment by doing that kinda of thing



No, he was asking if you asked them (in a friendly/normal manner) like I would have too.
Last edited by James on Sat Jun 02, 12 5:24 pm, edited 1 time in total.
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home

Postby RedDynasty » Sat Jun 02, 12 5:24 pm

from ur words it kinda sounded, but lets drop the crap and help me out!
I dunno how to start my mail to them >_>
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby Alex » Sat Jun 02, 12 5:25 pm

It's a mod made by gamers for gamers, they don't expect highly formal e-mails. Just send em something.

Besides that, a small tip for your project: try to test your work so far in a dedicated server. It can give a different result than a non-dedicated server.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby RedDynasty » Sat Jun 02, 12 5:50 pm

i cant test my mods in a lan server, i try to enter as an admin and spawn stuff but it doesnt let me.
Im just going to finish the mod, and send it to poor so he can help me out testing in his server
BTW i sent the message to them
Last edited by RedDynasty on Mon Jun 04, 12 4:26 pm, edited 2 times in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby RedDynasty » Sun Jun 03, 12 3:03 am

everyone i just received a reply from Jonas, he said this:

"Yeah that's fine, it's all creative commons. As long as you're not making money off our work, it's all good.

- Jonas"

Now dont bother meh anymore >_>
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby James » Sun Jun 03, 12 6:49 am

You pretty much have to ask that for every one.
Last edited by James on Sun Jun 03, 12 5:02 pm, edited 1 time in total.
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home

Postby RedDynasty » Sun Jun 03, 12 1:03 pm

Is it ok for everyone that i post code\test maps here?
The mail is real, if u want i can send a screenshot of it
Last edited by RedDynasty on Sun Jun 03, 12 1:04 pm, edited 1 time in total.
Image
Your not a gamer until you played this.
User avatar
RedDynasty
Wannabe
 
Posts: 130
Joined: Sun Apr 01, 12 8:12 pm
Location: Portugal

Postby James » Sun Jun 03, 12 5:03 pm

I believe you, it's just that you're mis-reading our English.
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home

Next

Return to Editing issues

Who is online

Users browsing this forum: No registered users and 12 guests
cron