Quantcast

Jump to content

» «
Photo

Spawning a Firetruck with shooting water canon

3 replies to this topic
FRANK_PANTA
  • FRANK_PANTA

    Crackhead

  • Members
  • Joined: 25 Aug 2012

#1

Posted 05 April 2013 - 08:52 PM Edited by FRANK_PANTA, 05 April 2013 - 08:56 PM.

Hey,

im trying to spawn a Firetruck that is shooting its water canon:

CODE

void SpawnVehicle( uint hash, float x, float y, float z, float h, float qx, float qy, float qz, float qw){
REQUEST_MODEL(hash);
while (!HAS_MODEL_LOADED(hash)) WAIT(100);
Car c;
Ped driver;
CREATE_CAR(hash, x, y, z, &c, 1);
SET_CAR_HEADING(c, h);//not working without qz, qw
SET_VEHICLE_QUATERNION(c,qx,qy,qz,qw);  
FREEZE_CAR_POSITION(c, 1);
SET_CAR_CAN_BE_DAMAGED(c, 0);
SET_CAR_CAN_BE_VISIBLY_DAMAGED(c, 0);
SET_CAN_BURST_CAR_TYRES(c, 0);
CREATE_RANDOM_CHAR_AS_DRIVER(c,&driver);
LOCK_CAR_DOORS(c,VEHICLE_DOOR_LOCKED_BOTH_SIDES);
SET_BLOCKING_OF_NON_TEMPORARY_EVENTS( driver, 1 );
TASK_SHOOT_AT_COORD(driver, c, 2220, 843, 5.5, 100000);
MARK_MODEL_AS_NO_LONGER_NEEDED(hash);
}


I thought TASK_SHOOT_AT_COORD would do it but the driver is just turn the driver wheel to the coords but no water coming out lol

appeciate any tips/helps/suggestions

have a good one

MasterVampire
  • MasterVampire

    Evil

  • Members
  • Joined: 15 Oct 2007

#2

Posted 07 April 2013 - 01:21 AM

Maybe look at this?

http://www.gta4-mods...fire-dept-f8510

hardsty1e
  • hardsty1e

    RIP Yeardley Diamond

  • Members
  • Joined: 02 May 2009
  • Philippines

#3

Posted 07 April 2013 - 08:54 PM

QUOTE (MasterVampire @ Sunday, Apr 7 2013, 01:21)
Maybe look at this?

http://www.gta4-mods...fire-dept-f8510

I think his script uses ptfx effect then clears fire with native but I notice with LCPDFR firetruck request from Mr.Mysterious
you were able to get knocked down by the water cannon & not with Ambient Fire Dept. by Prof_Farnsworth.

FRANK_PANTA
  • FRANK_PANTA

    Crackhead

  • Members
  • Joined: 25 Aug 2012

#4

Posted 08 April 2013 - 03:06 PM

thx guys...

the files are dll files.. how do i get the source from this? im coding this for consoles not PC and cant handle a .dll libary




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users