Posted: Sun May 18, 2008 1:20 am Post subject:
Genetic Nuke
I'm using RP 1.10 and i know u can make a new nuke in it. Im trying to give Yuri a nuke that will blow shit up but the radiation left behind will transform people (sounds cool i know). I already got some codes up and everything seems to work besides the animations and the radiation. When i build the rocket pad it plays the active animation once and just goes back to a pad without a rocket. then when it launches it launches the soviet nuke instead of the nuke i made.
[YGROCKUP] ;Up pointing big ol nuke
Trailer=NUKEPUFF;V3TRAIL;SMOKEY2
[YGROCKDN] ; and down pointing
Trailer=NUKEPUFF
[NUKEBALL2];nuke explosion buildup
Rate=500
Crater=yes
ForceBigCraters=yes
Next=NUKEANIM ; SJM: NUKEBALL now called from code, and NUKEANIM called from NUKE warhead
Report=NukeIntro
------Rules------
[NewNukeSpecial]
;Basic Stuff
UIName=Name:NewNuke
Name=Nuke Clone
IsPowered=true
RechargeTime=2;for testing
Type=NewNuke ;NewNuke is the type for Nuke clones
Action=NewNM ;check out the Adding custom Actions page to find out more about this
WeaponType=NukeCarrier
SidebarImage=GENNUKEICON
ShowTimer=yes
DisableableFromShell=no ;for testing
Range=7
LineMultiplier=2
;New Tags
ActivateSound=NukeSiren ;Activating sound
TakeOff=NUKETO ;taking off anim
Projectile=YGROCKUP
FirstAnim=NUKEBALL2 ;The anim played before the explosion itself
Payload=NukePayload2 ;Damaging weapon
Warhead=NUKE2 ;Damaging warhead
PsiWarning=PSIWARN ;PsiWarn animation
ScreenFlash=yes ;Does the screen flash effect occur?
[NUKE2]
CellSpread=10
PercentAtMax=.02 ;used to be .8
WallAbsoluteDestroyer=yes
Wood=yes
Verses=100%,100%,100%,200%,100%,100%,60%,100%,8%,100%,100%
InfDeath=7;
Sparky=no
Tiberium=yes
;AnimList=NUKEBALL ; SJM: Activated from code now... see Bullet AI
AnimList=NUKEANIM ; SJM: This is once again the warhead-related anim
ShakeXlo=4
ShakeXhi=4
ShakeYlo=20
ShakeYhi=20
[YGMISL]
UIName=Name:YGMISL
Name=Yuri Rocket Launch Pad
BuildCat=Combat
SuperWeapon=NewNukeSpecial
;HY SuperWeapon2=ChemicalSpecial
Prerequisite=YATECH,YATEK
Strength=1000
Armor=concrete
TechLevel=10
Adjacent=2
Sight=4
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=1 ;gs 0 for Good, 1 for Evil
Cost=5000
Points=30
Power=-200
Crewed=yes
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=15
MinDebris=5
DebrisAnim=Dbris3sm,Dbris4lg,Dbris4sm,Dbris6sm,Dbris7lg,Dbris7sm,Dbris8sm,Dbris9lg,Dbris10lg,Dbris10sm
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,LGSparkSys
SpecialThreatValue=1
NukeSilo=yes
Nominal=yes
RevealToAll=yes
HasStupidGuardMode=false
Spyable=yes
ChargedAnimTime=1 ;Number of minutes left at which weapon should switch to charged state Geoff is god!
;DeathWeapon=NukePayload
;Explodes=Yes
AIBuildThis=yes
ProtectWithWall=yes
BuildLimit=1
DamageSelf=yes
Image=YGROCK2 QUICK_EDIT
Sorry, but there is alot of editing to be done to this, mostly renaming. You may want to read the MDK or if you don't have it, I may have early version documentation for RP, and please check your version with the documentation. Otherwise, I'm not going to really touch this.
Also, the Yuri Rocket Pad doesn't have the correct animation codes, as it was only to be a single mission building. Also, the rocket is the Nuclear Missile because the image may not have been incorporated into the correct file package, or the projectile code is not for your version of RP. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
In the case you don't have said documentation, you may be able to get it here. Either the MDK 2 or Nighthawk's guide should help you with many of your questions. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Action=NewNM ;check out the Adding custom Actions page to find out more about this
You haven't show any evidence that you are even using MouseCursors which is nessecary and if you knew the documentation you wouldn't be asking for help. _________________ QUICK_EDIT
You could at least have mentioned that while posting bogus pointers. If you ask for help, but don't mention that, one would assume that you don't know what you are doing. _________________
back on topic tho. i tried what allied said and now the nuke rocket wont even take off the explosion will just happen where i click. so im probably gonna end up using another building that was actually designed for this insted of trying to make my own. anyone know of any yuri-ish looking nuke buildings? QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum