Quantcast

Jump to content

» «
Photo

Fus Ro Dah mod question

3 replies to this topic
quechus13
  • quechus13

    Boss

  • Members
  • Joined: 19 Dec 2008

#1

Posted 22 February 2012 - 10:52 AM

Hi!

I don't normally do this but I suck at coding and wanted to know how to make a force push mod like the Fus Ro Dah from skyrim

Will it be easy or hard? are there mods like this already?


Thanks guys!

please note that i didn't know where to post this so yeah XD

thaCURSEDpie
  • thaCURSEDpie

    GTA:IV scripter

  • Members
  • Joined: 01 Jul 2007

#2

Posted 24 February 2012 - 11:10 PM

Very easy.

.Net scripthook:
CODE

Ped targetPed;

// init targetPed somehow

// We create a vector pointing from the player to the target ped
Vector3 aimVec = targetPed.Position - Player.Character.Position;
aimVec.Normalize();

float forceMultiplier = 10f;

targetPed.ApplyForce(aimVec * forceMultiplier);


This creates the push effect, though you don't have the particle FX, obviously.

IIRC someone already made something like this, dunno who.

Hardest thing would be finding what ped is being targetted, though that's not too hard either.

quechus13
  • quechus13

    Boss

  • Members
  • Joined: 19 Dec 2008

#3

Posted 25 February 2012 - 07:05 AM

Wow!

So do you think that by binding the script to say the fist? (when niko punches someone)

will it trigger and push everything niko sees?
dang i suck at this XD

N-field
  • N-field

    Crackhead

  • Members
  • Joined: 11 Sep 2011

#4

Posted 08 March 2012 - 03:35 AM

You could look at my touhou spellcards mod for a different approach. Deals damage to everything in its path.... Look at either master spark or gungnir




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users